Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-04-26 07:53:34 +0300
committerCampbell Barton <campbell@blender.org>2022-04-26 07:59:41 +0300
commit802bc8e2330062e321eef24a58ca9fe86778fdf7 (patch)
tree5b418fe09fe9efd0be5321a14d856c003daa7bb5 /pyproject.toml
parenta28fd0ceb59420db1ad62bad08f526f1791db2ab (diff)
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.
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml9
1 files changed, 9 insertions, 0 deletions
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