
- Setup FastAPI project structure with main.py and requirements.txt - Implement SQLAlchemy ORM with SQLite database - Create Item model with CRUD operations - Implement health endpoint for monitoring - Setup Alembic for database migrations - Add comprehensive documentation in README.md - Configure Ruff for code linting
25 lines
509 B
TOML
25 lines
509 B
TOML
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
# Enable Pyflakes, pycodestyle, isort
|
|
select = ["F", "E", "W", "I"]
|
|
|
|
# Ignore specific rules
|
|
ignore = [
|
|
"E501", # Line too long
|
|
"W293", # Blank line contains whitespace - docstrings often have this
|
|
]
|
|
|
|
# Exclude files and directories
|
|
exclude = [
|
|
".git",
|
|
".venv",
|
|
"venv",
|
|
"__pycache__",
|
|
"migrations",
|
|
]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-third-party = ["fastapi", "pydantic", "sqlalchemy", "alembic", "starlette"] |