diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-24 06:20:17 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-24 06:41:02 +0300 |
commit | 99fff90eabe10e70cd9e649ebd0aef25a92a9960 (patch) | |
tree | 010b06fa45e7a6cc657bb7fb95883b7adc09d7f6 /pyproject.toml | |
parent | c486da0238bd61eb304f402bd07a9ae43c3733e5 (diff) |
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.
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 10 |
1 files 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). |