Skip to content

Commit 0c22ddb

Browse files
committed
"Update ruff pre-commit hook
"
1 parent f782ff7 commit 0c22ddb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: end-of-file-fixer
1111
- id: trailing-whitespace
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.3.4
13+
rev: v0.15.8
1414
hooks:
1515
- id: ruff-format
1616
- id: ruff

adafruit_tlc5947.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def __getitem__(self, key: int) -> int:
240240
max depends on the number of boards.
241241
"""
242242
if key < 0: # allow reverse adressing with negative index
243-
key = key + _CHANNELS * self._n
243+
key += _CHANNELS * self._n
244244
return self._get_gs_value(key) # does parameter checking
245245

246246
def __setitem__(self, key: int, val: int) -> None:
@@ -251,5 +251,5 @@ def __setitem__(self, key: int, val: int) -> None:
251251
the chip with the new PWM state.
252252
"""
253253
if key < 0: # allow reverse adressing with negative index
254-
key = key + _CHANNELS * self._n
254+
key += _CHANNELS * self._n
255255
self._set_gs_value(key, val) # does parameter checking

0 commit comments

Comments
 (0)