Skip to content

Commit 5ead190

Browse files
kiblikmtesauro
andauthored
Ruff: Add and autofix PLR1704 (#13005)
Co-authored-by: Matt Tesauro <mtesauro@gmail.com>
1 parent 9dcfc93 commit 5ead190

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

dojo/tools/scout_suite/parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ def recursive_print(self, src, depth=0, key=""):
157157
def tabs(n):
158158
return " " * n * 2
159159
if isinstance(src, dict):
160-
for key, value in src.items():
160+
for _key, value in src.items():
161161
if isinstance(src, str):
162-
self.item_data = self.item_data + key + "\n"
163-
self.recursive_print(value, depth + 1, key)
162+
self.item_data = self.item_data + _key + "\n"
163+
self.recursive_print(value, depth + 1, _key)
164164
elif isinstance(src, list):
165165
for litem in src:
166166
self.recursive_print(litem, depth + 2)

ruff.toml

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

0 commit comments

Comments
 (0)