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:
2) 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.
3) Set up Poetry:
Follow the prompts to set up your project. This will create a pyproject.toml
file.
4) Install Dependencies:
For example, to add requests as a dependency:
To create a Virtual Environment: $ poetry shell
.
5) Pycharm
Open Pycharm and open the project folder. Then, configure the Python interpreter by selecting the one create by Poetry.