Skip to content

Commit

Permalink
Ruff: Add PLC18 and fix PLC1802 (#11707)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik authored Feb 6, 2025
1 parent a43cc06 commit e426aed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dojo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ def save(self, *args, **kwargs):
if (initial_sla_config.low != self.low) or (initial_sla_config.enforce_low != self.enforce_low):
severities.append("Low")
# if severities have changed, update finding sla expiration dates with those severities
if len(severities):
if severities:
# set the async updating flag to true for this sla config
self.async_updating = True
super().save(*args, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ select = [
"FIX001", "FIX003",
"PD",
"PGH",
"PLC01", "PLC0205", "PLC0208", "PLC0414", "PLC24", "PLC3",
"PLC01", "PLC0205", "PLC0208", "PLC0414", "PLC18", "PLC24", "PLC3",
"PLE",
"PLR01", "PLR0203", "PLR0206", "PLR0915", "PLR1716", "PLR172", "PLR1733", "PLR1736",
"PLW0120", "PLW0127", "PLW0129", "PLW013", "PLW017", "PLW02", "PLW04", "PLW07", "PLW1", "PLW2", "PLW3",
Expand Down

0 comments on commit e426aed

Please sign in to comment.