Skip to content

Commit e426aed

Browse files
authored
Ruff: Add PLC18 and fix PLC1802 (#11707)
1 parent a43cc06 commit e426aed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dojo/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ def save(self, *args, **kwargs):
10331033
if (initial_sla_config.low != self.low) or (initial_sla_config.enforce_low != self.enforce_low):
10341034
severities.append("Low")
10351035
# if severities have changed, update finding sla expiration dates with those severities
1036-
if len(severities):
1036+
if severities:
10371037
# set the async updating flag to true for this sla config
10381038
self.async_updating = True
10391039
super().save(*args, **kwargs)

ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ select = [
7373
"FIX001", "FIX003",
7474
"PD",
7575
"PGH",
76-
"PLC01", "PLC0205", "PLC0208", "PLC0414", "PLC24", "PLC3",
76+
"PLC01", "PLC0205", "PLC0208", "PLC0414", "PLC18", "PLC24", "PLC3",
7777
"PLE",
7878
"PLR01", "PLR0203", "PLR0206", "PLR0915", "PLR1716", "PLR172", "PLR1733", "PLR1736",
7979
"PLW0120", "PLW0127", "PLW0129", "PLW013", "PLW017", "PLW02", "PLW04", "PLW07", "PLW1", "PLW2", "PLW3",

0 commit comments

Comments
 (0)