Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ ignore = [
"TRY003", # This doesn't seem too bad. # https://docs.astral.sh/ruff/rules/raise-vanilla-args/
"DJ001" # Nullable string fields does is used a lot in this project. Maybe enable later? # https://docs.astral.sh/ruff/rules/django-nullable-model-string-field/
]
select = ["E", "W", "I", "F", "UP", "S", "B", "A", "COM", "LOG", "PTH", "Q", "PL", "RUF", "ANN", "PIE", "TC", "TRY", "DJ", "EM", "ISC", "RET", "SIM"]
select = ["E", "W", "I", "F", "UP", "S", "B", "A", "COM", "LOG", "PTH", "Q", "PL", "RUF", "ANN", "PIE", "TC", "TRY", "DJ", "EM", "ISC", "RET", "SIM", "PERF"]

[tool.ruff.lint.flake8-annotations]
mypy-init-return = true # https://docs.astral.sh/ruff/settings/#lint_flake8-annotations_mypy-init-return
Expand Down
2 changes: 1 addition & 1 deletion src/genlab_bestilling/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def confirm_order(self, persist: bool = True) -> None:
for sample in self.samples.all():
try:
sample.has_error # noqa: B018
except ValidationError:
except ValidationError: # noqa: PERF203
invalid += 1

if invalid > 0:
Expand Down