summaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-08-10 17:06:18 (GMT)
committerGitHub <noreply@github.com>2021-08-10 17:06:18 (GMT)
commita6808c6378ccfd732285ee20319658ac29eacf4c (patch)
tree3082d073bb11f77dc6c48a9d0daed2dd86f4412a /.editorconfig
parent4e0147ec50aa62315c5a9aa7c88c181f57aadf42 (diff)
downloadcpython-a6808c6378ccfd732285ee20319658ac29eacf4c.zip
cpython-a6808c6378ccfd732285ee20319658ac29eacf4c.tar.gz
cpython-a6808c6378ccfd732285ee20319658ac29eacf4c.tar.bz2
bpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638)
(cherry picked from commit c0ab59f7de1906feee21c057ad433fad924d1e38) Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..81445d2
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,12 @@
+root = true
+
+[*.{py,c,cpp,h,rst,md,yml}]
+trim_trailing_whitespace = true
+insert_final_newline = true
+indent_style = space
+
+[*.{py,c,cpp,h}]
+indent_size = 4
+
+[*.yml]
+indent_size = 2