
Create a simple Todo API with FastAPI and SQLite with CRUD functionality, health check, error handling, and API documentation.
31 lines
714 B
TOML
31 lines
714 B
TOML
[tool.ruff]
|
|
# Exclude a variety of commonly ignored directories.
|
|
exclude = [
|
|
".git",
|
|
".ruff_cache",
|
|
"__pycache__",
|
|
"venv",
|
|
"migrations",
|
|
]
|
|
|
|
# Same as Black.
|
|
line-length = 88
|
|
|
|
# Assume Python 3.10
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
# Enable flake8-bugbear (`B`) rules.
|
|
select = ["E", "F", "B", "I"]
|
|
|
|
# Allow unused variables when underscore-prefixed.
|
|
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
|
|
# Ignore some errors
|
|
ignore = ["B008"] # Ignore function call in argument defaults which is common in FastAPI
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"__init__.py" = ["F401"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-third-party = ["fastapi", "pydantic", "sqlalchemy", "alembic", "uvicorn"] |