code-style: add .editorconfig and update .gitignore

This commit is contained in:
tfuxu 2023-03-05 18:04:20 +01:00
parent aa566050f8
commit fc34ed6fc6
No known key found for this signature in database
GPG key ID: 79CFC3B9B31C098A
2 changed files with 20 additions and 0 deletions

19
.editorconfig Normal file
View file

@ -0,0 +1,19 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
[*.css]
indent_size = 2
[*.md]
trim_trailing_whitespace = false

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
venv/
_build/
__pycache__/
*.py[cod]