lint con ruff
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user