Skip to content

Latest commit

 

History

History
88 lines (60 loc) · 1.35 KB

File metadata and controls

88 lines (60 loc) · 1.35 KB

Development and Testing

Setup

After cloning the repository, install dependencies and the pre-push hook:

uv sync --locked
uv run pre-commit install --hook-type pre-push

The pre-push hook runs fix-and-check-all before each push to apply formatting and linting fixes and check typing and unit tests.

Primary Development Commands

To check and resolve linting issues in the codebase, run:

uv run ruff check --fix

To check and resolve formatting issues in the codebase, run:

uv run ruff format

To check the unit tests in the codebase, run:

uv run pytest

To check the typing in the codebase, run:

uv run mypy

To generate a code coverage report after testing locally, run:

uv run coverage html

To check the lock file is up to date:

uv lock --check

Shortcut Task Commands

For Running Individual Checks
uv run poe check-lock
uv run poe check-format
uv run poe check-lint
uv run poe check-tests
uv run poe check-typing
For Running All Checks
uv run poe check-all
For Running Individual Fixes
uv run poe fix-format
uv run poe fix-lint
For Running All Fixes
uv run poe fix-all
For Running All Fixes and Checks
uv run poe fix-and-check-all