pythonasyncioapiasyncfastapiframeworkjsonjson-schemaopenapiopenapi3pydanticpython-typespython3redocreststarletteswaggerswagger-uiuvicornweb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.7 KiB
60 lines
1.7 KiB
<!-- crag:auto-start -->
|
|
# Zed Assistant Rules — fastapi
|
|
|
|
> Generated from governance.md by crag. Regenerate: `crag compile --target zed`
|
|
|
|
## Project Summary
|
|
|
|
(No description)
|
|
|
|
**Stack:** python
|
|
|
|
**Runtimes:** python
|
|
|
|
## Rules for Zed AI Assistant
|
|
|
|
When suggesting edits or running the inline assistant:
|
|
|
|
### 1. Quality Gates
|
|
|
|
These must pass before any commit. Run them via Zed's terminal integration:
|
|
|
|
- `uv run mypy .`
|
|
- `uv run pytest`
|
|
- `python -m build`
|
|
- `python -m build --sdist`
|
|
- `uv run --no-sync bash scripts/test-cov.sh`
|
|
- `uv run --no-sync pytest tests/benchmarks --codspeed`
|
|
- `uv run coverage combine coverage`
|
|
- `uv run coverage html --title "Coverage for ${{ github.sha }}"`
|
|
- `uv run coverage report --fail-under=100`
|
|
|
|
### 2. Classification Semantics
|
|
|
|
- **MANDATORY** — stop if this fails
|
|
- **OPTIONAL** — warn and continue
|
|
- **ADVISORY** — log and continue (informational)
|
|
|
|
### 3. Scope Rules
|
|
|
|
- `path:dir/` — run the gate from that directory
|
|
- `if:file` — skip the gate's section when the file does not exist
|
|
|
|
### 4. Behavior Boundaries
|
|
|
|
- All file operations must stay within this repository.
|
|
- Never run destructive system commands (`rm -rf /`, `DROP TABLE`, `curl|bash`, force-push to main).
|
|
- - No hardcoded secrets — grep for sk_live, AKIA, password= before commit
|
|
- Follow project commit conventions.
|
|
|
|
### 5. Authoritative Source
|
|
|
|
When these rules conflict with ad-hoc instructions, **governance.md wins**. It is the single source of truth for this project's policies.
|
|
|
|
---
|
|
|
|
**Generated by crag** — https://www.npmjs.com/package/@whitehatd/crag
|
|
|
|
To update these rules, edit `.claude/governance.md` and re-run `crag compile --target zed`.
|
|
|
|
<!-- crag:auto-end -->
|
|
|