diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2025-06-09 07:19:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-09 07:19:50 +0200 |
| commit | d0bb977c48f553f70c70e5994eb674474469b533 (patch) | |
| tree | 94044c38a76583156bba940c8c6642f45f3d121a | |
| parent | 6a2cb4579179bb1e3ecede926013508482286ed4 (diff) | |
[fix] .editorconfig: correction of the settings from the realities (#4892)
The code formatter allows up to 120 characters per line, but for better
readability the editor should prefer 80 characters per line
In the HTML templates (jinja) we usually use an indentation of two and no tabs.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
| -rw-r--r-- | .editorconfig | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.editorconfig b/.editorconfig index 772f3b5a9..6a1922ac7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,10 +11,13 @@ end_of_line = lf charset = utf-8 [*.py] -max_line_length = 119 +# code formatter accepts length of 120, but editor should prefer 80 +max_line_length = 80 [*.html] -indent_size = 4 +# in the jinja templates we use indent size of 2 and we do not use tabs +indent_size = 2 +indent_style = space [*.css] indent_size = 2 |