update project and add ruff

This commit is contained in:
2024-06-21 10:54:26 +07:00
parent 98c04ab1be
commit cd3bae23e6
38 changed files with 156 additions and 55 deletions
+17
View File
@@ -22,3 +22,20 @@ python-multipart = "^0.0.6"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
exclude = [
".git",
".ruff_cache",
".venv",
"venv",
"mongodb",
"data",
]
line-length = 92
[tool.ruff.lint]
select = ["E", "F", "UP", "I"]
[tool.ruff.format]
skip-magic-trailing-comma = true