Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic Setup

This guide explains how to set up the project automatically using make, Python virtual environments, and Poetry.


Automatic Setup

After installing and configuring make, run:

Remove poetry and venv files for clean install

make cleanup

Run initial setup

make setup

In cmd or powershell activate venv

.\venv\Scripts\activate.bat
.\venv\Scripts\Activate.ps1

Setup flake, isort, black and pre-commit

make setup_formatting

Try out tests

poetry add pytest
poetry run pytest

Create Virtual Environment (venv)

Create a virtual environment:

python -m venv venv

Activate it to bring up the venv indicator:

.\venv\Scripts\Activate

Check if the correct Python is active:

Get-Command python | Select-Object Source

Project Packages

Install all required packages:

make install_pack

Poetry

Install Poetry

pip install poetry

Initialize pyproject.toml

poetry init

Force Poetry to use the current venv

poetry config virtualenvs.create false --local

Import packages from requirements.txt

poetry add $(Get-Content requirements.txt)

Add packages manually (example: pandas)

poetry add pandas

Additional Commands

Activate venv and show indicator

.\venv\Scripts\Activate.ps1

Install make (requires admin)

choco install make -y

Run tests

poetry add pytest
poetry run pytest

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages