]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638)
authorŁukasz Langa <lukasz@langa.pl>
Tue, 10 Aug 2021 16:30:57 +0000 (18:30 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Aug 2021 16:30:57 +0000 (18:30 +0200)
.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..81445d2
--- /dev/null
@@ -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