[Bf-blender-cvs] [99fff90eabe] master: pyproject: remove settings that cause other uses of autopep8 to fail

Campbell Barton noreply at git.blender.org
Sun Apr 24 05:48:21 CEST 2022


Commit: 99fff90eabe10e70cd9e649ebd0aef25a92a9960
Author: Campbell Barton
Date:   Sun Apr 24 13:20:17 2022 +1000
Branches: master
https://developer.blender.org/rB99fff90eabe10e70cd9e649ebd0aef25a92a9960

pyproject: remove settings that cause other uses of autopep8 to fail

While the ability to run `autopep8 .` to format Blender's Python code
is handy, the settings to perform this can conflict with other uses
of autopep8 (which editors may use to auto-format on save).

Some arguments now need to be passed in, e.g:

    autopep8 . --in-place --recursive --jobs=0

We'll likely include this in `make format` convenience target so the
details for invoking autopep8 shouldn't be an issue in the long term.

===================================================================

M	pyproject.toml

===================================================================

diff --git a/pyproject.toml b/pyproject.toml
index 921157d9034..0b022dfeb34 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -40,11 +40,5 @@ exclude = """
 ./source/tools/*,
 """
 
-# Match CPU count.
-jobs = 0
-
-# Format files in-place.
-in_place = true
-
-# Format directories recursively (except for excluded paths).
-recursive = true
+# Omit settings such as `jobs`, `in_place` & `recursive` as they can cause editor utilities that auto-format on save
+# to fail if the STDIN/STDOUT is used for formatting (which isn't compatible with these options).



More information about the Bf-blender-cvs mailing list