mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-25 02:54:01 +03:00
feat(coding-style): Add editorconfig for consistent coding style
More info at http://editorconfig.org/ * The list of projects already using it to standardize their coding styles[1]. * Inspired by editorconfig of django-model-utils[2]. [1]: http://git.io/pz1vWA [2]: http://git.io/QIAWvw
This commit is contained in:
parent
df9f6726bf
commit
54cc4d8d66
17
.editorconfig
Normal file
17
.editorconfig
Normal file
|
@ -0,0 +1,17 @@
|
|||
# http://editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{py,rst,ini}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.yml]
|
||||
indent_style = space
|
||||
indent_size = 2
|
17
{{cookiecutter.repo_name}}/.editorconfig
Normal file
17
{{cookiecutter.repo_name}}/.editorconfig
Normal file
|
@ -0,0 +1,17 @@
|
|||
# http://editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{py,rst,ini}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.yml]
|
||||
indent_style = space
|
||||
indent_size = 2
|
Loading…
Reference in New Issue
Block a user