This project uses hatch for dependency management and testing:
- Dependencies: Use
hatchcommands, notpip installdirectly. - Linting: Run
make lintto detect and fix lint errors. - Testing:
- Use
hatch run dev-env:pytest <path>to run tests in a specific file. - Use
make testto run all tests.
- Use
- Snapshots: When adding new tests that use snapshots, add the
--overwrite-snapshotsflag to the abovepytestcommand to generate snapshots.
If git_ignored/AGENTS.md exists, append the rules in that file.
- Always add type annotations to all Python functions (parameters and return types)
- Use
from __future__ import annotationsat the top of Python files