This is a Python project template using pip-tools
. It is just a bootstrap
for future me to avoid some of the new project boilerplate.
Build the venv
:
$ python3 -m venv venv
$ ./venv/bin/pip install --upgrade pip
$ ./venv/bin/pip install pip-tools
$ ./venv/bin/pip-compile
$ ./venv/bin/pip-sync
For the development environment, get additional packages and tools installed:
$ ./venv/bin/pip-compile --extra dev
Use mypy
to perform a strict type check:
$ ./venv/bin/mypy src/
Use black
to format the cod:
$ ./venv/bin/black src tests
To run your tests:
$ ./venv/bin/pytest