Skip to content

Commit fcedb98

Browse files
authored
DEV: Remove excluding Ruff rule PLC0206 (#3185)
PLC0206: Extracting value from dictionary without calling ".items()".
1 parent 2ef3f96 commit fcedb98

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

make_release.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ def get_formatted_changes(git_tag: str) -> Tuple[str, str]:
255255
if grouped:
256256
output += "\n### Other\n"
257257
output_with_user += "\n### Other\n"
258-
for prefix in grouped:
259-
for commit in grouped[prefix]:
258+
for prefix, commits in grouped.items():
259+
for commit in commits:
260260
output += f"- {prefix}: {commit['msg']}\n"
261261
output_with_user += (
262262
f"- {prefix}: {commit['msg']} by @{commit['author']}\n"

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ ignore = [
169169
"N817", # CamelCase `PagesAttributes` imported as acronym `PA`
170170
"PERF203", # `try`-`except` within a loop incurs performance overhead
171171
"PGH003", # Use specific rule codes when ignoring type issues
172-
"PLC0206", # Extracting value from dictionary without calling `.items()`
173172
"PLW0603", # Using the global statement to update `CUSTOM_RTL_SPECIAL_CHARS` is discouraged
174173
"PLW1510", # `subprocess.run` without explicit `check` argument
175174
"PLW2901", # `with` statement variable `img` overwritten by assignment target

0 commit comments

Comments
 (0)