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
a605966c
Commit
a605966c
authored
10 months ago
by
Yoann Schneider
Committed by
Erwan Rouchet
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Use ruff for flake8
parent
b15c780e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2283
Use ruff for flake8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+0
-8
0 additions, 8 deletions
.pre-commit-config.yaml
ruff.toml
+10
-1
10 additions, 1 deletion
ruff.toml
with
10 additions
and
9 deletions
.pre-commit-config.yaml
+
0
−
8
View file @
a605966c
...
...
@@ -3,14 +3,6 @@ repos:
rev
:
v5.10.1
hooks
:
-
id
:
isort
-
repo
:
https://github.com/pycqa/flake8
rev
:
3.9.2
hooks
:
-
id
:
flake8
additional_dependencies
:
-
'
flake8-copyright==0.2.2'
-
'
flake8-debugger==3.1.0'
-
'
flake8-quotes==3.3.2'
-
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
+
10
−
1
View file @
a605966c
...
...
@@ -5,9 +5,18 @@ line-length = 120
quote-style
=
"double"
[lint]
select
=
[
"Q0"
,
"F"
,
"W"
,
"E"
,
select
=
[
# flake8-quotes
"Q"
,
# pyflakes
"F"
,
# pycodestyle
"W"
,
"E"
,
# request-without-timeout
"S113"
,
# flake8-debugger
"T10"
,
# escape-sequence-in-docstring
"D301"
,
# flake8-return
...
...
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