Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
1ae492c8
Unverified
Commit
1ae492c8
authored
3 years ago
by
David Robertson
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move isort config to `pyproject.toml` (#12052)
parent
d7cb0dcb
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
changelog.d/12052.misc
+1
-0
1 addition, 0 deletions
changelog.d/12052.misc
pyproject.toml
+12
-0
12 additions, 0 deletions
pyproject.toml
setup.cfg
+0
-11
0 additions, 11 deletions
setup.cfg
tox.ini
+1
-1
1 addition, 1 deletion
tox.ini
with
14 additions
and
12 deletions
changelog.d/12052.misc
0 → 100644
+
1
−
0
View file @
1ae492c8
Move `isort` configuration to `pyproject.toml`.
This diff is collapsed.
Click to expand it.
pyproject.toml
+
12
−
0
View file @
1ae492c8
...
...
@@ -54,3 +54,15 @@ exclude = '''
)/
)
'''
[tool.isort]
line_length
=
88
sections
=
[
"FUTURE"
,
"STDLIB"
,
"THIRDPARTY"
,
"TWISTED"
,
"FIRSTPARTY"
,
"TESTS"
,
"LOCALFOLDER"
]
default_section
=
"THIRDPARTY"
known_first_party
=
[
"synapse"
]
known_tests
=
[
"tests"
]
known_twisted
=
[
"twisted"
,
"OpenSSL"
]
multi_line_output
=
3
include_trailing_comma
=
true
combine_as_imports
=
true
This diff is collapsed.
Click to expand it.
setup.cfg
+
0
−
11
View file @
1ae492c8
...
...
@@ -19,14 +19,3 @@ ignore =
# E731: do not assign a lambda expression, use a def
# E501: Line too long (black enforces this for us)
ignore
=
W503,W504,E203,E731,E501
[isort]
line_length
=
88
sections
=
FUTURE,STDLIB,THIRDPARTY,TWISTED,FIRSTPARTY,TESTS,LOCALFOLDER
default_section
=
THIRDPARTY
known_first_party
=
synapse
known_tests
=
tests
known_twisted
=
twisted,OpenSSL
multi_line_output
=
3
include_trailing_comma
=
true
combine_as_imports
=
true
This diff is collapsed.
Click to expand it.
tox.ini
+
1
−
1
View file @
1ae492c8
...
...
@@ -166,7 +166,7 @@ commands =
[testenv:check_isort]
extras
=
lint
commands
=
isort -c --df
--sp setup.cfg
{[base]lint_targets}
commands
=
isort -c --df {[base]lint_targets}
[testenv:check-newsfragment]
skip_install
=
true
...
...
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