diff options
author | Patrick Steinhardt <ps@pks.im> | 2020-01-30 11:37:49 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2020-02-07 15:06:24 +0100 |
commit | 1e556eeb878bd06dcffadaee50c27c89c5d5f633 (patch) | |
tree | d71b9c594940e9e1e6b68f046790d6f399c32d55 | |
parent | 03ac24b1195e1ffb69a242eb77acce903812f032 (diff) | |
download | libgit2-1e556eeb878bd06dcffadaee50c27c89c5d5f633.tar.gz |
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.
-rw-r--r-- | .editorconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig index 34c5e9234..2230fd860 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,3 +15,7 @@ indent_size = 2 indent_style = space indent_size = 4 trim_trailing_whitespace = false + +[*.py] +indent_style = space +indent_size = 4 |