1.6 KiB
1.6 KiB
AGENTS.md
Generated from governance.md by crag. Regenerate:
crag compile --target agents-md
Project: flask
Quality Gates
All changes must pass these checks before commit:
Lint
uv run ruff check .uv run ruff format --check .uv run mypy .
Test
uv run tox run
Build
python -m build
Ci (inferred from workflow)
uv run --locked --no-default-groups --group pre-commit pre-commit run --show-diff-on-failure --color=always --all-filesuv run --locked --no-default-groups --group dev tox runuv run --locked --no-default-groups --group dev tox run -e typing
Coding Standards
- Stack: python
- Follow project commit conventions
Architecture
- Type: monolith
Key Directories
.github/— CI/CDdocs/— documentationsrc/— sourcetests/— tests
Testing
- Framework: pytest
- Layout: flat
- Naming: test_*.py
Code Style
- Indent: 4 spaces
- Line length: 88
Anti-Patterns
Do not:
- Do not catch bare
Exception— catch specific exceptions - Do not use mutable default arguments (e.g.,
def f(x=[])) - Do not use
import *— use explicit imports
Security
- No hardcoded secrets — grep for sk_live, AKIA, password= before commit
Workflow
- Read
governance.mdat the start of every session — it is the single source of truth. - Run all mandatory quality gates before committing.
- If a gate fails, fix the issue and re-run only the failed gate.
- Use the project commit conventions for all changes.