Hypermodern Python
Chapter 1: Setup
Run console script
poetry run hypermodern-python
Chapter 2: Testing
Run tests
poetry run pytest
Run coverage
poetry run pytest --cov
Automate tests with NOX
# install nox
pip install --user --upgrade nox
# run tests
nox
# run tests reusing the same env
nox -r
Run e2e tests
nox -rs tests-3.9 -- -m e2e
Run only lint checks
nox -rs lint
Run only black formatter
nox -rs black