feat: Add .flake8 configuration for code style enforcement and set maximum line length

This commit is contained in:
Miguel 2025-08-24 10:24:45 +02:00
parent 24ae05cc75
commit e2c78fb63e
2 changed files with 26 additions and 0 deletions

View File

@ -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

View File

@ -13,6 +13,9 @@
"files.associations": {
"*.xml": "xml",
"*.scl": "structured-text"
},
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#36182a"
}
},
"extensions": {