mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Rework editorconfig
* Most file types prefer 2-space indents, so now default to that and list the exceptions * Add max_line_length=120 for .py files (Django convention) * Bat files require CRLF
This commit is contained in:
@@ -1,24 +1,25 @@
|
||||
# http://editorconfig.org
|
||||
# https://editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
# Follow Django conventions for most files
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 4
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# Use 2 spaces for js and text(-like) files
|
||||
[*.{html,js,json,md,rst,txt,yml}]
|
||||
indent_size = 2
|
||||
[*.py]
|
||||
indent_size = 4
|
||||
max_line_length = 120
|
||||
|
||||
# Makefiles always use tabs for indentation
|
||||
[Makefile]
|
||||
[*.{ini,lock}]
|
||||
indent_size = 4
|
||||
|
||||
[{Makefile,*.bat}]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
|
||||
# Batch files use tabs for indentation
|
||||
[*.bat]
|
||||
indent_style = tab
|
||||
end_of_line = crlf
|
||||
|
||||
Reference in New Issue
Block a user