Skip to content

Commit 9c5e2ea

Browse files
chore(pre-commit.ci): pre-commit autoupdate (#60)
1 parent 71a479f commit 9c5e2ea

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ repos:
4747
hooks:
4848
- id: flake8
4949
- repo: https://github.com/pre-commit/mirrors-mypy
50-
rev: v1.14.0
50+
rev: v1.14.1
5151
hooks:
5252
- id: mypy
5353
additional_dependencies: []
5454
- repo: https://github.com/PyCQA/bandit
55-
rev: 1.8.0
55+
rev: 1.8.2
5656
hooks:
5757
- id: bandit
5858
args: [-x, tests]
5959
- repo: https://github.com/python-poetry/poetry
60-
rev: 1.8.0
60+
rev: 2.0.1
6161
hooks:
6262
- id: poetry-check
6363
- repo: https://github.com/pre-commit/mirrors-prettier
@@ -66,7 +66,7 @@ repos:
6666
- id: prettier
6767
args: ["--tab-width", "2"]
6868
- repo: https://github.com/astral-sh/ruff-pre-commit
69-
rev: v0.8.4
69+
rev: v0.9.1
7070
hooks:
7171
- id: ruff
7272
args: [--fix, --exit-non-zero-on-fix]

src/led_ble/led_ble.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
DEFAULT_ATTEMPTS = 3
5353

54-
DREAM_EFFECTS = {f"Effect {i+1}": i for i in range(0, 255)}
54+
DREAM_EFFECTS = {f"Effect {i + 1}": i for i in range(0, 255)}
5555
DREAM_EFFECT_LIST = list(DREAM_EFFECTS)
5656

5757

@@ -423,7 +423,7 @@ def dream(self) -> bool:
423423
def effect(self) -> str | None:
424424
"""Return the current effect."""
425425
if self.dream and self.preset_pattern_num == 0:
426-
return f"Effect {self.mode+1}"
426+
return f"Effect {self.mode + 1}"
427427
return self._named_effect
428428

429429
@property

0 commit comments

Comments
 (0)