feat: Add .flake8 configuration for code style enforcement and set maximum line length
This commit is contained in:
parent
24ae05cc75
commit
e2c78fb63e
|
@ -0,0 +1,23 @@
|
|||
[flake8]
|
||||
# Líneas máximas permitidas (por defecto es 79, pero 88 se alinea con black)
|
||||
max-line-length = 88
|
||||
|
||||
# Ignorar ciertos tipos de errores/advertencias comunes
|
||||
ignore =
|
||||
E203, # whitespace before ':'
|
||||
E501, # line too long (handled by black)
|
||||
W503, # line break before binary operator
|
||||
F401, # imported but unused (útil durante desarrollo)
|
||||
|
||||
# Archivos/directorios a excluir
|
||||
exclude =
|
||||
.git,
|
||||
__pycache__,
|
||||
.vscode,
|
||||
*.pyc,
|
||||
.env,
|
||||
venv,
|
||||
env
|
||||
|
||||
# Complejidad máxima permitida
|
||||
max-complexity = 10
|
|
@ -13,6 +13,9 @@
|
|||
"files.associations": {
|
||||
"*.xml": "xml",
|
||||
"*.scl": "structured-text"
|
||||
},
|
||||
"workbench.colorCustomizations": {
|
||||
"titleBar.activeBackground": "#36182a"
|
||||
}
|
||||
},
|
||||
"extensions": {
|
||||
|
|
Loading…
Reference in New Issue