This document contains critical information about working with this codebase. Follow these guidelines precisely.
-
Package Management
- ONLY use uv, NEVER pip
- Installation:
uv add package - Upgrading:
uv add --dev package --upgrade-package package - FORBIDDEN:
uv pip install,@latestsyntax
-
Code Quality
- Type hints required for all code
- Follow existing patterns exactly
- Use Google style for docstring
-
Testing Requirements
- Framework:
uv run --frozen pytest - Coverage: test edge cases and errors
- New features require tests
- Bug fixes require regression tests
- Framework:
-
Git
- Follow the Conventional Commits style on commit messages.
- Ruff
- Format:
uv run --frozen ruff format . - Check:
uv run --frozen ruff check . - Fix:
uv run --frozen ruff check . --fix
- Format:
- Pre-commit
- Config:
.pre-commit-config.yaml - Runs: on git commit
- Tools: Ruff (Python)
- Config: