
- Create FastAPI app structure - Set up SQLAlchemy with SQLite for database management - Implement invoice and invoice item models - Add Alembic for database migrations - Create invoice generation and retrieval API endpoints - Add health check endpoint - Set up Ruff for linting - Update README with project details
26 lines
588 B
TOML
26 lines
588 B
TOML
[tool.ruff]
|
|
# Enable flake8-bugbear (`B`) rules.
|
|
target-version = "py310"
|
|
|
|
# Exclude a variety of commonly ignored directories.
|
|
exclude = [
|
|
".git",
|
|
".env",
|
|
".venv",
|
|
"__pycache__",
|
|
".pytest_cache",
|
|
]
|
|
|
|
# Allow imports relative to the "app" directory to support absolute imports
|
|
src = ["app"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "B"]
|
|
ignore = ["E501", "B008"] # Ignore line length violations and function calls in defaults
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"__init__.py" = ["F401"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
# Only known first party imports.
|
|
known-first-party = ["app"] |