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
5c12eb2d
Commit
5c12eb2d
authored
1 year ago
by
Bastien Abadie
Browse files
Options
Downloads
Patches
Plain Diff
Enable most of pycodestyle through ruff
parent
adab0793
No related branches found
No related tags found
1 merge request
!2223
Enable most of pycodestyle through ruff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arkindex/users/utils.py
+1
-1
1 addition, 1 deletion
arkindex/users/utils.py
ruff.toml
+2
-2
2 additions, 2 deletions
ruff.toml
with
3 additions
and
3 deletions
arkindex/users/utils.py
+
1
−
1
View file @
5c12eb2d
...
...
@@ -34,7 +34,7 @@ def get_public_instances(model):
def
check_level_param
(
level
):
assert
typ
e
(
level
)
is
int
,
"
An integer level is required to compare access rights.
"
assert
isinstanc
e
(
level
,
int
)
,
"
An integer level is required to compare access rights.
"
assert
level
>=
1
,
"
Level integer should be greater than or equal to 1.
"
assert
level
<=
100
,
"
level integer should be lower than or equal to 100
"
...
...
This diff is collapsed.
Click to expand it.
ruff.toml
+
2
−
2
View file @
5c12eb2d
...
...
@@ -5,5 +5,5 @@ line-length = 120
quote-style
=
"double"
[lint]
select
=
[
"Q0"
]
ignore
=
[
"
F"
,
"E
"
]
select
=
[
"Q0"
,
"F"
,
"W"
,
"E"
]
ignore
=
[
"
E501
"
]
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