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
d7e58a04
Commit
d7e58a04
authored
11 months ago
by
Yoann Schneider
Committed by
Erwan Rouchet
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Bump ruff pre-commit-hook
parent
6652b69d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2281
Bump ruff pre-commit-hook
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+3
-1
3 additions, 1 deletion
.pre-commit-config.yaml
arkindex/documents/serializers/entities.py
+1
-1
1 addition, 1 deletion
arkindex/documents/serializers/entities.py
with
4 additions
and
2 deletions
.pre-commit-config.yaml
+
3
−
1
View file @
d7e58a04
...
...
@@ -12,8 +12,10 @@ repos:
-
'
flake8-debugger==3.1.0'
-
'
flake8-quotes==3.3.2'
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
rev
:
v0.1.11
# Ruff version.
rev
:
v0.3.7
hooks
:
# Run the linter.
-
id
:
ruff
args
:
[
--fix
]
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
...
...
This diff is collapsed.
Click to expand it.
arkindex/documents/serializers/entities.py
+
1
−
1
View file @
d7e58a04
...
...
@@ -31,7 +31,7 @@ class EntityTypeSerializer(serializers.ModelSerializer):
# Get an error if a request tries to change an entity type's corpus
corpus
=
data
.
get
(
"
corpus
"
)
if
self
.
instance
and
corpus
:
raise
ValidationError
({
"
corpus
"
:
[
"
It is not possible to update an Entity Type
\
'
s corpus.
"
]})
raise
ValidationError
({
"
corpus
"
:
[
"
It is not possible to update an Entity Type
'
s corpus.
"
]})
data
=
super
().
to_internal_value
(
data
)
return
data
...
...
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