From e2c78fb63ea7e97020f5013c712949344db2bef5 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 24 Aug 2025 10:24:45 +0200 Subject: [PATCH] feat: Add .flake8 configuration for code style enforcement and set maximum line length --- .../script_groups/XML Parser to SCL/.flake8 | 23 +++++++++++++++++++ .../XML Parser to SCL.code-workspace | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 backend/script_groups/XML Parser to SCL/.flake8 diff --git a/backend/script_groups/XML Parser to SCL/.flake8 b/backend/script_groups/XML Parser to SCL/.flake8 new file mode 100644 index 0000000..d692713 --- /dev/null +++ b/backend/script_groups/XML Parser to SCL/.flake8 @@ -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 diff --git a/backend/script_groups/XML Parser to SCL/XML Parser to SCL.code-workspace b/backend/script_groups/XML Parser to SCL/XML Parser to SCL.code-workspace index 56995ed..4dad223 100644 --- a/backend/script_groups/XML Parser to SCL/XML Parser to SCL.code-workspace +++ b/backend/script_groups/XML Parser to SCL/XML Parser to SCL.code-workspace @@ -13,6 +13,9 @@ "files.associations": { "*.xml": "xml", "*.scl": "structured-text" + }, + "workbench.colorCustomizations": { + "titleBar.activeBackground": "#36182a" } }, "extensions": {