Skip to content

Commit 38a2433

Browse files
mathiasbynensCommit Bot
authored and
Commit Bot
committed
Encode Python indentation style in .editorconfig
Infuriatingly, `git cl format` and our PRESUBMIT scripts enforce 4-space indentation for Python scripts, even though we use 2-space indentation everywhere else. This patch encodes that preference at the .editorconfig level. https://google.github.io/styleguide/pyguide.html#34-indentation Change-Id: Ibe31afe6cd48fe762e04578687802da61b4b935f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2248197 Auto-Submit: Mathias Bynens <[email protected]> Commit-Queue: Paul Lewis <[email protected]> Reviewed-by: Paul Lewis <[email protected]>
1 parent 8dcbdb8 commit 38a2433

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
10+
11+
[*.py]
12+
indent_size = 4

0 commit comments

Comments
 (0)