Skip to content

Commit d41ceaf

Browse files
Ruff: Add PLW (#13104)
* Ruff: Add PLW * update
1 parent 43434d6 commit d41ceaf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dojo/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2789,8 +2789,8 @@ def save(self, dedupe_option=True, rules_option=True, product_grading_option=Tru
27892789
if self.pk is None:
27902790
# We enter here during the first call from serializers.py
27912791
from dojo.utils import apply_cwe_to_template
2792-
self = apply_cwe_to_template(self)
2793-
2792+
# No need to use the returned variable since `self` Is updated in memory
2793+
apply_cwe_to_template(self)
27942794
if (self.file_path is not None) and (len(self.unsaved_endpoints) == 0):
27952795
self.static_finding = True
27962796
self.dynamic_finding = False

ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ select = [
8585
"PLC01", "PLC02", "PLC0414", "PLC18", "PLC24", "PLC28", "PLC3",
8686
"PLE",
8787
"PLR01", "PLR02", "PLR04", "PLR0915", "PLR1711", "PLR1704", "PLR1714", "PLR1716", "PLR172", "PLR173", "PLR2044", "PLR5", "PLR6104", "PLR6201",
88-
"PLW01", "PLW02", "PLW04", "PLW0602", "PLW0603", "PLW0604", "PLW07", "PLW1", "PLW2", "PLW3",
88+
"PLW",
8989
"UP",
9090
"FURB",
9191
"RUF",

0 commit comments

Comments
 (0)