Skip to content

Commit 4a1d36e

Browse files
authored
chore: add more editorconfigs (pypi#17194)
- Add directives for other files - Add exclusion markers for generates/vendored directories Signed-off-by: Mike Fiedler <[email protected]>
1 parent 69279e8 commit 4a1d36e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.editorconfig

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ end_of_line = lf
77
indent_size = 2
88
indent_style = space
99
insert_final_newline = true
10+
trim_trailing_whitespace = true
1011

1112
[*.py]
1213
indent_size = 4
@@ -18,3 +19,9 @@ trim_trailing_whitespace = false
1819

1920
[Makefile]
2021
indent_style = tab
22+
23+
[warehouse/templates/**/*.{html,txt}]
24+
# our templates do their own left-padding in Jinja comments, ignore
25+
indent_size = unset
26+
[LICENSE]
27+
indent_size = unset

warehouse/locale/.editorconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# exclude anything in this directory
2+
root = true

0 commit comments

Comments
 (0)