-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
49 lines (45 loc) · 1.38 KB
/
ruff.toml
File metadata and controls
49 lines (45 loc) · 1.38 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
49
# ==============================
# Configuración principal Ruff
# ==============================
line-length = 88
target-version = "py313"
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (ordenar imports)
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"S", # bandit
]
ignore = [
"W291", # trailing whitespace
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"S101", # use of assert detected (pytest uses assert)
"S110", # raise exception in __init__
"S112", # use of assert (pytest)
"S608",
]
[lint.per-file-ignores]
"tests/*" = ["S101", "S106", "S108","B007", "S105", "UP038"]
# ==============================
# Configuración de isort dentro de Ruff
# ==============================
[lint.isort]
known-first-party = ["src"] # Código propio
combine-as-imports = true # Une imports con "as"
order-by-type = true # Ordena por tipo de import
case-sensitive = false # Orden insensible a mayúsculas
lines-after-imports = 2 # Línea extra tras imports
# ==============================
# Configuración de formateo
# ==============================
[format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false