aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2021-08-10 18:30:57 +0200
committerGitHub <noreply@github.com>2021-08-10 18:30:57 +0200
commitc0ab59f7de1906feee21c057ad433fad924d1e38 (patch)
treeb0ec28e89c81e237f9dc8dc20b498c9598538b45 /.editorconfig
parentClassify specialization failures. Provides more useful stats, with lower over... (diff)
downloadcpython-c0ab59f7de1906feee21c057ad433fad924d1e38.tar.gz
cpython-c0ab59f7de1906feee21c057ad433fad924d1e38.tar.bz2
cpython-c0ab59f7de1906feee21c057ad433fad924d1e38.zip
bpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638)
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 00000000000..81445d2d79c
--- /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