Skip to content

Commit 1e556ee

Browse files
committed
editorconfig: special-case Python scripts
Python's PEP 8 specifies that one shall use spaces instead of tabs as coding style, and we actually honor that currently. Our EditorConfig does not special-case Python scripts, though, which is why we end up with our C coding style and thus with tabs. Special-case "*.py" files to override that default with spaces to fix this.
1 parent 03ac24b commit 1e556ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ indent_size = 2
1515
indent_style = space
1616
indent_size = 4
1717
trim_trailing_whitespace = false
18+
19+
[*.py]
20+
indent_style = space
21+
indent_size = 4

0 commit comments

Comments
 (0)