Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-04-19 08:50:35 +0300
committerCampbell Barton <campbell@blender.org>2022-04-22 03:13:39 +0300
commit30acc5f9cde7e94713600b8481837bda996f9753 (patch)
treead8224aa2598afabc76b504de1229299c9ba6886 /.editorconfig
parent2547c3c70ceef763ae9698b8dc76c12168a605d4 (diff)
pyproject: add configuration for autopep8
This adds pyproject.toml, needed to configure defaults for autopep8. The file is auto-discovered in a similar way to .clang-format, other tools could be configured here too. For now just configure autopep8 so this can be enabled in IDE's without causing unexpected edits such as wrapping lines over 80 columns in width. Now autopep8 can be used from the root directory by running: autopep8 . This uses multiple-jobs to run autopep8 over all Python scripts except paths that are explicitly ignored in exclude defined by pyproject.toml. Reviewed By: mont29, brecht, sybren Ref D14686
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
index 41ec3a1dc3d..0d2ec3d0766 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -34,6 +34,15 @@ indent_style = space
indent_size = 2
max_line_length = 99
+# Tom's Obvious Minimal Language
+[*.toml]
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+indent_style = space
+indent_size = 4
+max_line_length = 120
+
# reStructuredText
[*.rst]
charset = utf-8