]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44854: Add .editorconfig file to help enforce `make patchcheck` (GH-27638) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Aug 2021 17:08:59 +0000 (10:08 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Aug 2021 17:08:59 +0000 (19:08 +0200)
(cherry picked from commit c0ab59f7de1906feee21c057ad433fad924d1e38)

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
.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