-
Start by installing
uv. Depending on your distribution, this may be as simple as:sudo dnf -y install uv
If you would like to run the latest version, you can install the command using
pipx. First, installpipx:sudo dnf -y install pipxAnd then use
pipxto installuv:pipx install uv -
Next, install
pre-commit. As withuv, you can install this using your system package manager:sudo dnf -y install pre-commitOr you can install a possibly more recent version using
pipx:pipx install pre-commit
Activate pre-commit for your working copy of this repository by running:
pre-commit install
This will configure .git/hooks/pre-commit to run the pre-commit tool every time you make a commit. Running these tests locally ensures that your code is clean and that tests are passing before you share your code with others. To manually run all the checks:
pre-commit run --all-files
To install the project dependencies, run:
uv sync --all-extras
To run just the unit tests:
uv run pytest
This will generate a test coverage report in htmlcov/index.html.