Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#78)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](psf/black@23.12.1...24.1.1)
- [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](PyCQA/flake8@6.1.0...7.0.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Drop flake8

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Bibo-Joshi authored Feb 7, 2024
1 parent 759b003 commit 294f9c5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 31 deletions.
6 changes: 1 addition & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ default_language_version:

repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/pylint
rev: v3.0.3
hooks:
Expand Down
6 changes: 2 additions & 4 deletions components/basebridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ async def set_color(self, color: Color) -> None:
"""Sets the color on the RGBW strip."""

@abc.abstractmethod
async def initialize(self) -> None:
...
async def initialize(self) -> None: ...

@abc.abstractmethod
async def shutdown(self) -> None:
...
async def shutdown(self) -> None: ...

async def set_off(self) -> None:
await self.set_color(Color(red=0, green=0, blue=0, white=0))
9 changes: 3 additions & 6 deletions components/baseeffect.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@ def duration(self) -> float:

@property
@abc.abstractmethod
def repeat(self) -> bool:
...
def repeat(self) -> bool: ...

@property
@abc.abstractmethod
def stay_on(self) -> bool:
...
def stay_on(self) -> bool: ...

@abc.abstractmethod
def edit(self, **kwargs: Any) -> None:
...
def edit(self, **kwargs: Any) -> None: ...
24 changes: 8 additions & 16 deletions components/basepersistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,25 @@ def __init__(self, update_interval: float = 1):
self.update_interval = update_interval

@abc.abstractmethod
async def flush(self) -> None:
...
async def flush(self) -> None: ...

@abc.abstractmethod
async def get_status(self) -> bool:
...
async def get_status(self) -> bool: ...

@abc.abstractmethod
async def get_color(self) -> Color:
...
async def get_color(self) -> Color: ...

@abc.abstractmethod
async def get_alarms(self) -> dict[str, Alarm]:
...
async def get_alarms(self) -> dict[str, Alarm]: ...

@abc.abstractmethod
async def update_status(self, status: bool) -> None:
...
async def update_status(self, status: bool) -> None: ...

@abc.abstractmethod
async def update_color(self, color: Color) -> None:
...
async def update_color(self, color: Color) -> None: ...

@abc.abstractmethod
async def update_alarm(self, alarm: Alarm) -> None:
...
async def update_alarm(self, alarm: Alarm) -> None: ...

@abc.abstractmethod
async def drop_alarm(self, alarm: Alarm | str) -> None:
...
async def drop_alarm(self, alarm: Alarm | str) -> None: ...

0 comments on commit 294f9c5

Please sign in to comment.