Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 2.26 KB

File metadata and controls

69 lines (50 loc) · 2.26 KB

AGENTS.md

Precedence: the closest AGENTS.md to changed files wins. Explicit user instructions override repository files.

Commands

Task Command
Install uv sync --frozen --group docs
Fast checks uv run pre-commit run --hook-stage pre-commit --all-files
Full gate uv run pre-commit run --hook-stage pre-push --all-files
Single test uv run pytest tests/test_naming.py -q
Security audit uv run pre-commit run dependency-audit --hook-stage manual --all-files

File map

Path Purpose
src/fgcz_reference_project/ Minimal typed library and CLI
tests/ Unit and CLI error-path tests
scripts/ Changed-line coverage and wheel inspection
docs/ MkDocs source; see docs/AGENTS.md
.github/workflows/ CI, Pages, and scheduled audit; see its AGENTS.md

Golden samples

For Reference
Public typed function src/fgcz_reference_project/naming.py
CLI boundary src/fgcz_reference_project/cli.py
Tests tests/test_naming.py and tests/test_cli.py

Project rules

  • uv and uv.lock are the only dependency workflow; never add requirements.txt.
  • Keep src/fgcz_reference_project/__init__.py empty; import from concrete modules.
  • Pyright strict mode and 100% line/branch coverage are blocking.
  • Add domain-specific checks as hooks, then invoke the same hooks from CI.
  • Record user-visible changes under Unreleased in CHANGELOG.md.

Boundaries

Always

  • Fix the root cause of failing quality checks.
  • Keep local hooks and GitHub Actions aligned.
  • Run the smallest relevant check after edits and the full gate before handoff.

Ask first

  • Adding runtime dependencies or changing public interfaces.
  • Lowering type, coverage, security, or documentation gates.

Never

  • Commit credentials, generated public/, build artifacts, or .venv/.
  • Push, create a remote, or publish packages without explicit authorization.

Scoped AGENTS.md