Development
Environment Setup
This project was developed by the Author on MacOS, using VS Code as the IDE. The following instructions may vary depending on your environment.
- Install the latest version of Python.
- Install requirements by running
pip install -r requirements.txt
from the root directory. - Install dev requirements by running
pip install -r requirements-dev.txt
from the root directory. - Install Just
Run just test
from the root directory to make sure everything is working.
Development
We use just
as our task runner. To see all available tasks, run just --list
.
The main command you'll need is just check
, which runs tests with coverage check, linting and code quality.
If this passes, your code will most likely pass the Pull-Request checks.
Code Coverage
Code coverage is enforced by coverage
. To run the tests and generate a coverage report,
run the following command from the root directory`:
We have a minimum coverage threshold of 90% of individual file coverage, and overall 95%.
Code Linting
Linting is currently done using ruff
.
Code Quality
Code quality currently runs just mypy
.