Skip to content

Commit

Permalink
Ruff: Enable and fix RUF027 (#11332)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik authored Dec 4, 2024
1 parent ea283b0 commit 40942b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion dojo/finding/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3010,7 +3010,7 @@ def finding_bulk_update_all(request, pid=None):
success_count += 1

for error_message, error_count in error_counts.items():
add_error_message_to_response("{error_count} finding groups could not be pushed to JIRA: {error_message}")
add_error_message_to_response(f"{error_count} finding groups could not be pushed to JIRA: {error_message}")

if success_count > 0:
add_success_message_to_response(f"{success_count} finding groups pushed to JIRA successfully")
Expand Down
1 change: 0 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ ignore = [
"RUF010",
"RUF012",
"RUF015",
"RUF027",
"D205",
"D211", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible.
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible.
Expand Down

0 comments on commit 40942b5

Please sign in to comment.