python fastapi

python_fastapi

Configuration

Minimum Version
3.12
Package Manager
uv
Test Framework
pytest
Linter
ruff
Test Runner
pytest

Policy

Use Pydantic v2 models for request/response contracts.
Split routers by domain and enable lifespan for startup tasks.
Use uv for dependency management - faster than pip/poetry.

Commands

run uvicorn app.main:app --reload
lint ruff check .
test pytest
format ruff format .
install uv sync
typecheck pyright

Included in Rulesets

FastAPI Guidelines
36 rules • 1 standard
View
Python Standards
33 rules • 2 standards
View
Pytest Testing
24 rules • 2 standards
View
uv Standards
25 rules • 2 standards
View

Add This Standard

Sign in to add this standard to your workspace

Sign in with GitHub

Details

Language
python
Framework
fastapi
Used in
4 rulesets