This repo is currently undergoing refactoring, so as to become more easily applicable to elections in any time, in any language.
To install the package and its dependencies, use uv and:
-
Install dependencies:
Just the basics:
uv sync
Including dev dependencies:
uv sync --all-extras --dev
-
Install the package:
uv pip install -e .
To ensure code is formatted correctly before committing, set up pre-commit hooks:
-
Setup
pre-commit
by installing the dev dependencies:uv sync --dev
-
Install the hooks:
uv run pre-commit install
-
Run the hooks manually on all files (optional):
uv run pre-commit run --all-files
This will use ruff
to format your code automatically.