From 99fff90eabe10e70cd9e649ebd0aef25a92a9960 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 24 Apr 2022 13:20:17 +1000 Subject: [PATCH] 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. --- pyproject.toml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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).