High Fastapi

Use dependency injection

Rule Description

Use `Depends()` for db sessions, auth, config, services. Composable and testable.

Included in Rulesets

Django Best Practices
56 rules • 1 standard
View
FastAPI Guidelines
56 rules • 1 standard
View
Python Standards
56 rules • 2 standards
View
Code Review Standards
214 rules • 0 standards
View

Add This Rule

Sign in to add this rule to your workspace

Sign in with GitHub

Details

Severity
High
Category
Fastapi
Used in
4 rulesets