Use Ruff and fix all its warnings

This commit is contained in:
2023-11-02 00:08:42 +01:00
parent df59c33f9b
commit 2165dd5b7b
19 changed files with 347 additions and 203 deletions

View File

@ -18,16 +18,20 @@ uvicorn = { extras = ["standard"], version = "^0.23.0" }
[tool.poetry.group.dev.dependencies]
httpx = "^0.25.0"
pytest = "^7.4.3"
pre-commit = "^3.5.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core>=1",
]
[tool.ruff]
fix = true
unsafe-fixes = true
preview = true
select = ["ALL"]
ignore = ["D100", "CPY001"]
ignore = ["D100", "D104", "CPY001", "ANN201"]
[tool.ruff.pydocstyle]
convention = "google"