summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2021-08-10 16:30:57 (GMT)
committerGitHub <noreply@github.com>2021-08-10 16:30:57 (GMT)
commitc0ab59f7de1906feee21c057ad433fad924d1e38 (patch)
treeb0ec28e89c81e237f9dc8dc20b498c9598538b45
parent9816777861a3f19ea9faa5b98c9b7024f13c6b73 (diff)
downloadcpython-c0ab59f7de1906feee21c057ad433fad924d1e38.zip
cpython-c0ab59f7de1906feee21c057ad433fad924d1e38.tar.gz
cpython-c0ab59f7de1906feee21c057ad433fad924d1e38.tar.bz2
bpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638)
-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