Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
e05861d2
Commit
e05861d2
authored
10 months ago
by
Yoann Schneider
Committed by
Erwan Rouchet
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Use ruff for isort
parent
a605966c
No related branches found
No related tags found
1 merge request
!2282
Use ruff for isort
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+0
-4
0 additions, 4 deletions
.pre-commit-config.yaml
ruff.toml
+30
-0
30 additions, 0 deletions
ruff.toml
with
30 additions
and
4 deletions
.pre-commit-config.yaml
+
0
−
4
View file @
e05861d2
repos
:
-
repo
:
https://github.com/pre-commit/mirrors-isort
rev
:
v5.10.1
hooks
:
-
id
:
isort
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev
:
v0.3.7
...
...
This diff is collapsed.
Click to expand it.
ruff.toml
+
30
−
0
View file @
e05861d2
...
...
@@ -15,6 +15,8 @@ select = [
"E"
,
# request-without-timeout
"S113"
,
# isort
"I"
,
# flake8-debugger
"T10"
,
# escape-sequence-in-docstring
...
...
@@ -23,3 +25,31 @@ select = [
"RET"
,
]
ignore
=
[
"E501"
,
"RET502"
,
"RET503"
]
[lint.isort]
default-section
=
"first-party"
known-third-party
=
[
"SolrClient"
,
"bleach"
,
"boto3"
,
"botocore"
,
"cryptography"
,
"corsheaders"
,
"django"
,
"django_admin_hstore_widget"
,
"django_rq"
,
"drf_spectacular"
,
"enumfields"
,
"gitlab"
,
"psycopg2"
,
"requests"
,
"responses"
,
"rest_framework"
,
"rq"
,
"setuptools"
,
"sqlparse"
,
"teklia_toolbox"
,
"tenacity"
,
"tripoli"
,
"yaml"
,
]
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