Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-loader-mercurial
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Antoine R. Dumont
swh-loader-mercurial
Commits
21a66f4f
Commit
21a66f4f
authored
4 years ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
pre-commit: Add isort hook and configuration
Related to T2610
parent
134ae32e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+5
-0
5 additions, 0 deletions
.pre-commit-config.yaml
pyproject.toml
+9
-0
9 additions, 0 deletions
pyproject.toml
with
14 additions
and
0 deletions
.pre-commit-config.yaml
+
5
−
0
View file @
21a66f4f
...
...
@@ -26,6 +26,11 @@ repos:
language
:
system
types
:
[
python
]
-
repo
:
https://github.com/PyCQA/isort
rev
:
5.5.2
hooks
:
-
id
:
isort
-
repo
:
https://github.com/python/black
rev
:
19.10b0
hooks
:
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
9
−
0
View file @
21a66f4f
[tool.black]
target-version
=
[
'py37'
]
[tool.isort]
multi_line_output
=
3
include_trailing_comma
=
true
force_grid_wrap
=
0
use_parentheses
=
true
ensure_newline_before_comments
=
true
line_length
=
88
force_sort_within_sections
=
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