-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
48 lines (40 loc) · 1.07 KB
/
Copy pathruff.toml
File metadata and controls
48 lines (40 loc) · 1.07 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
44
45
46
47
48
# ruff.toml
# Versión objetivo del intérprete
target-version = "py310"
# Longitud máxima de línea (siguiendo convenciones de legibilidad)
line-length = 100
[lint]
select = [
"E", # Errores de estilo (pycodestyle)
"W", # Advertencias de estilo (pycodestyle)
"F", # Errores de análisis estático (pyflakes)
"B", # Mejores prácticas (bugbear)
"C90", # Complejidad ciclomática (mccabe)
"I", # Ordenamiento de imports (isort)
"UP", # Modernización (pyupgrade)
"N", # Nombres de convenciones (pep8-naming)
"D", # Docstrings (pydocstyle)
]
# Ignorados temporalmente hasta refactorizar
ignore = [
"E501", # Líneas largas (a revisar más adelante)
"C901", # Funciones demasiado complejas
"E722", # except sin tipo (dejar explícito más adelante)
]
# Habilitar autofixes seguros
fixable = ["ALL"]
unfixable = []
[lint.isort]
force-single-line = true
known-first-party = [
"app",
"db",
"conversion",
"export",
"grafo_interactivo",
"visualizacion"
]
[lint.mccabe]
max-complexity = 10
[lint.pydocstyle]
convention = "google"