lint con ruff

This commit is contained in:
2025-09-22 22:30:54 +02:00
parent 35527c89cd
commit fb2b2724ed
54 changed files with 585 additions and 432 deletions

View File

@@ -29,3 +29,27 @@ package-dir = {"" = "src"}
[tool.setuptools.packages.find]
exclude = ["test","build"]
where = ["src"]
[tool.ruff]
# Lunghezza massima della riga
line-length = 160
[tool.ruff.lint]
# Regole di linting da abilitare
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
# Regole da ignorare
ignore = []
[tool.ruff.format]
# Usa virgole finali
quote-style = "double"
indent-style = "space"