Install dev requirements with pip install -r requirements-dev.txt
To reformat your code, use this command line: ruff check src/ tests/ --fix && ruff format src/ tests/
To typecheck your code, use this command line: mypy
To use tox to run unit tests in multiple python versions at the same time as linting and formatting with ruff and typing with mypy:
- As the dev requirements include uv and
tox-uv
there is no need to install python versions,uv
will do this for you. - Use
tox -p
to run the environments in parallel to save time, this will create virtual environment with the necessary python versions the first time you run tox.