Skip to content

Commit b408abc

Browse files
authored
Merge pull request #364 from plugwise/renovate/astral-sh-ruff-pre-commit-0.x
Update pre-commit hook astral-sh/ruff-pre-commit to v0.0.282
2 parents 8d9d002 + 344d18c commit b408abc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ default_language_version:
1111
repos:
1212
# Run manually in CI skipping the branch checks
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.0.280
14+
rev: v0.0.282
1515
hooks:
1616
- id: ruff
1717
args:

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ def _preset(self, loc_id: str) -> str | None:
13041304
locator = "./rule[active='true']/directives/when/then"
13051305
if (
13061306
active_rule := self._domain_objects.find(locator)
1307-
) is None or "icon" not in active_rule.keys():
1307+
) is None or "icon" not in active_rule.keys(): # noqa: SIM118
13081308
return None
13091309
return str(active_rule.attrib["icon"])
13101310

0 commit comments

Comments
 (0)