Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-dev-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-dev-tools
Commits
3fcddd02
Commit
3fcddd02
authored
Apr 26, 2022
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
pyproject: match settings from Blender's configuration
parent
50c27746
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyproject.toml
+11
-8
11 additions, 8 deletions
pyproject.toml
utils/autopep8_clean.py
+6
-0
6 additions, 0 deletions
utils/autopep8_clean.py
with
17 additions
and
8 deletions
pyproject.toml
+
11
−
8
View file @
3fcddd02
...
@@ -20,6 +20,11 @@ ignore = [
...
@@ -20,6 +20,11 @@ ignore = [
# Why disable? Re-ordering imports is disruptive and breaks some scripts
# 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.
# that need to check if a module has already been loaded in the case of reloading.
"E402"
,
"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)
# Info: Fix various deprecated code (via lib2to3)
# Why disable? Does nothing besides incorrectly adding a duplicate import,
# 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:
# could be reported as a bug except this is likely to be removed soon, see:
...
@@ -27,6 +32,10 @@ ignore = [
...
@@ -27,6 +32,10 @@ ignore = [
"W690"
,
"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:
# Exclude:
# - `./svn_rev_map/` contains data-files which are slow to re-format and don't benefit from formatting.
# - `./svn_rev_map/` contains data-files which are slow to re-format and don't benefit from formatting.
exclude
=
"""
exclude
=
"""
...
@@ -34,11 +43,5 @@ exclude = """
...
@@ -34,11 +43,5 @@ exclude = """
./svn_rev_map/rev_to_sha1.py,
./svn_rev_map/rev_to_sha1.py,
"""
"""
# Match CPU count.
# Omit settings such as `jobs`, `in_place` & `recursive` as they can cause editor utilities that auto-format on save
jobs
=
0
# to fail if the STDIN/STDOUT is used for formatting (which isn't compatible with these options).
# Format files in-place.
in_place
=
true
# Format directories recursively (except for excluded paths).
recursive
=
true
This diff is collapsed.
Click to expand it.
utils/autopep8_clean.py
+
6
−
0
View file @
3fcddd02
...
@@ -63,6 +63,12 @@ def autopep8_format_file(f):
...
@@ -63,6 +63,12 @@ def autopep8_format_file(f):
# Why disable?: re-ordering imports is disruptive and breaks some scripts
# 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.
# that need to check if a module has already been loaded in the case of reloading.
"
E402
"
,
"
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)
# Info: Fix various deprecated code (via lib2to3)
# Why disable?: causes imports to be added/re-arranged.
# Why disable?: causes imports to be added/re-arranged.
"
W690
"
,
"
W690
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment