Skip to main content

Development

Commands for working on this repo's own code, as opposed to running its console commands against a real DevOps server (see README.md for that).

Install​

uv sync --all-extras --all-packages --no-progress

Git hooks​

The pre-commit hook runs gitleaks (must be installed and on PATH) to scan for secrets. Enable it once per clone:

chmod +x .git-hooks/*
git config --local core.hooksPath .git-hooks

Lint​

Mirrors the jobs in .gitea/workflows/lint.yml:

uv --offline run --no-sync --no-progress mypy --verbose ./
uv --offline run --no-sync --no-progress pylint --verbose ./
uv --offline run --no-sync --no-progress isort --check-only --verbose ./
uv --offline run --no-sync --no-progress black --check --verbose ./
uv --offline run --no-sync --no-progress ruff check --verbose ./
uv --offline run --no-sync --no-progress pyright --verbose
uv --offline run --no-sync --no-progress yamllint --strict ./
prettier --check .