mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 07:22:12 -05:00
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.
This commit is contained in:
parent
c486da0238
commit
99fff90eab
1 changed files with 2 additions and 8 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue