- Checks:
- black
- flake8
- isort
- mypy
- pytest
nix
direnv
Or without nix using virtualenv:
python39
virtualenv
Run:
nix run . -- --example foo --example bar
Shell:
nix develop
Shell using direnv:
direnv allow .
Run from shell:
python src/mypackage/__init__py --example foo --example bar
Build and run prod:
nix build
./result/bin/mypackage
Setup:
source ./scripts/venv
Run:
mypackage
Setup with fresh virtualenv:
source ./scripts/venv true
Update flake, rebuild requirements.txt
and requirements-dev.txt
:
./scripts/update