Skip to content

Files

Latest commit

3745c24 · Jul 25, 2024

History

History
36 lines (22 loc) · 971 Bytes

project-set-up.md

File metadata and controls

36 lines (22 loc) · 971 Bytes

Project set-up

Setting a project with Git, Poetry and Pycharm

  1. Initialize a Git Repository something like the Github Desktop App or using Git by running:
$ git init your_project_name
  1. Create a .gitignore file and add all relevant exclusions. You can use something like toptal.com/developers/gitignore. Here is an example .gitignore for Python, Pycharm, and Windows.

  2. Set up Poetry:

$ cd your_project_name
$ poetry init

Follow the prompts to set up your project. This will create a pyproject.toml file.

  1. Install Dependencies:

For example, to add requests as a dependency:

$ poetry add requests

To create a Virtual Environment: $ poetry shell.

  1. Pycharm

Open Pycharm and open the project folder. Then, configure the Python interpreter by selecting the one create by Poetry.