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
b113fd2a
Verified
Commit
b113fd2a
authored
11 months ago
by
Yoann Schneider
Browse files
Options
Downloads
Patches
Plain Diff
Use ruff for Isort
parent
c76fdeeb
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
+38
-1
38 additions, 1 deletion
ruff.toml
with
38 additions
and
5 deletions
.pre-commit-config.yaml
+
0
−
4
View file @
b113fd2a
repos
:
-
repo
:
https://github.com/pre-commit/mirrors-isort
rev
:
v5.10.1
hooks
:
-
id
:
isort
-
repo
:
https://github.com/pycqa/flake8
rev
:
3.9.2
hooks
:
...
...
This diff is collapsed.
Click to expand it.
ruff.toml
+
38
−
1
View file @
b113fd2a
...
...
@@ -5,8 +5,45 @@ line-length = 120
quote-style
=
"double"
[lint]
select
=
[
"Q0"
,
"F"
,
"W"
,
"E"
,
select
=
[
# flake8-quotes
"Q0"
,
# pyflakes
"F"
,
# pycodestyle
"W"
,
"E"
,
# request-without-timeout
"S113"
,
# isort
"I"
,
]
ignore
=
[
"E501"
]
[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