-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
43 lines (37 loc) · 1.11 KB
/
ruff.toml
File metadata and controls
43 lines (37 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
line-length = 88
target-version = "py314"
fix = true
[lint]
select = [
"E", # pycodestyle errors (Stile PEP8)
"W", # pycodestyle warnings
"F", # pyflakes (Errori logici, import inutilizzati)
"I", # isort (Ordinamento import - simile a AvoidStarImport/UnusedImports)
"C90", # mccabe (Complessità ciclotomatica)
"N", # pep8-naming (Nomi coerenti: classi, funzioni, variabili)
"B", # flake8-bugbear (Errori comuni/insidiosi)
"ANN", # flake8-annotations (Type hints - fondamentale per leggibilità)
"D", # pydocstyle (Documentazione/Docstrings)
"RUF", # Regole specifiche di Ruff
]
ignore = [
"D100", # Spesso i docstring nei file __init__.py sono ridondanti
"ANN101", # Non serve annotare 'self'
"ANN102", # Non serve annotare 'cls'
"N812",
"B008"
]
[lint.mccabe]
max-complexity = 10 # Complessità ciclomatica
[lint.pylint]
max-args = 5
max-branches = 12
max-statements = 50
[lint.isort]
combine-as-imports = true
force-single-line = false
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"