Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff: Enable and fix RUF027 #11332

Merged
merged 1 commit into from
Dec 4, 2024
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 dojo/finding/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3025,7 +3025,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 @@ -90,7 +90,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