Skip to content

Commit

Permalink
Enable ruff's E721 rule
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Oct 23, 2024
1 parent 495ae42 commit cd07975
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lms/views/admin/application_instance/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def update_instance_settings(self):
ai.settings.set_secret(self._aes_service, field.group, field.key, value)

else:
assert field.format == str
assert field.format is str
ai.settings.set(field.group, field.key, value)

self.request.session.flash(
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ ignore = [
"RET504",
"RET501",
"PLR6301",
"E721",
]

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit cd07975

Please sign in to comment.