Last active
July 5, 2024 14:20
-
-
Save diegosparente/9642b1103dd06a5e0f1228bac172dc2f to your computer and use it in GitHub Desktop.
editorconfig - Python projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.py] | |
max_line_length = 79 | |
[*.{yml,yaml,json}] | |
indent_style = space | |
indent_size = 2 | |
[*.md] | |
trim_trailing_whitespace = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Explicação das configurações:
Configurações específicas para arquivos Python:
max_line_length = 79: Define o comprimento máximo da linha como 79 caracteres, conforme recomendado pelo PEP 8.
Configurações específicas para arquivos YAML:
indent_size = 2: Usa 2 espaços para indentação.
Configurações específicas para arquivos Markdown:
trim_trailing_whitespace = false: Não remove espaços em branco no final de cada linha (útil para Markdown).
Configurações específicas para arquivos JSON: