mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Introduced a .editorconfig file for consistent coding style
This commit is contained in:
parent
1bd35ad355
commit
a5f0e4b5f2
20
.editorconfig
Normal file
20
.editorconfig
Normal file
|
@ -0,0 +1,20 @@
|
|||
# http://editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
|
||||
# Docstrings and comments use max_line_length = 79
|
||||
[*.py]
|
||||
max_line_length = 119
|
||||
|
||||
# Minified JavaScript files shouldn't be changed
|
||||
[**.min.js]
|
||||
indent_style = ignore
|
||||
insert_final_newline = ignore
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -16,3 +16,4 @@ coverage.*
|
|||
!.gitignore
|
||||
!.travis.yml
|
||||
!.isort.cfg
|
||||
!.editorconfig
|
||||
|
|
Loading…
Reference in New Issue
Block a user