[Bf-blender-cvs] [802bc8e2330] master: pyproject: enable aggressive, ignore E501 (line wrapping)

Campbell Barton noreply at git.blender.org
Tue Apr 26 07:04:06 CEST 2022


Commit: 802bc8e2330062e321eef24a58ca9fe86778fdf7
Author: Campbell Barton
Date:   Tue Apr 26 14:53:34 2022 +1000
Branches: master
https://developer.blender.org/rB802bc8e2330062e321eef24a58ca9fe86778fdf7

pyproject: enable aggressive, ignore E501 (line wrapping)

Aggressive needs to be enabled for many useful edits to take effect,
the ignore list is currently used to disable edits that may need
further checks/investigation before they're enabled.

Note that aggressive was already enabled for the:
source/tools/utils/autopep8_clean.py script which was previously used
when applying autopep8.

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

M	pyproject.toml

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

diff --git a/pyproject.toml b/pyproject.toml
index 0b022dfeb34..283e4c40db2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -20,6 +20,11 @@ ignore = [
     # Why disable? Re-ordering imports is disruptive and breaks some scripts
     # that need to check if a module has already been loaded in the case of reloading.
     "E402",
+    # Info: Try to make lines fit within --max-line-length characters.
+    # Why disable? Causes lines to be wrapped, where long lines have the trailing bracket moved to the end of the line.
+    # If trailing commas were respected as they are by clang-format this might be acceptable.
+    # Note that this doesn't disable all line wrapping.
+    "E501",
     # Info: Fix various deprecated code (via lib2to3)
     # Why disable? Does nothing besides incorrectly adding a duplicate import,
     # could be reported as a bug except this is likely to be removed soon, see:
@@ -27,6 +32,10 @@ ignore = [
     "W690",
 ]
 
+# Use aggressive as many useful edits are disabled unless it's enabled.
+# Any edits which are overly disruptive or risky can be removed in the `ignore` list.
+aggressive = 2
+
 # Exclude:
 # - `./extern/` because it's maintained separately.
 # - `./release/scripts/addons*` & `./source/tools/` because they are external repositories



More information about the Bf-blender-cvs mailing list