Skip to content

Commit

Permalink
chore: switch to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Dec 11, 2024
1 parent a07b075 commit 8844907
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
from typing import Any, List
from typing import Any

# -- Project information -----------------------------------------------------

Expand All @@ -40,7 +40,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns: List[Any] = []
exclude_patterns: list[Any] = []


# -- Options for HTML output -------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/led_ble/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# "ffd4" - Triones:B30200000459C - legacy


STATE_COMMAND = b"\xEF\x01\x77"
STATE_COMMAND = b"\xef\x01\x77"


class CharacteristicMissingError(Exception):
Expand Down
1 change: 0 additions & 1 deletion src/led_ble/model_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

@dataclass(frozen=True)
class LEDBLEModel:

model_num: int # The model number aka byte 1
models: list[str] # The model names from discovery
description: str # Description of the model ({type} {color_mode})
Expand Down
1 change: 0 additions & 1 deletion src/led_ble/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

@dataclass(frozen=True)
class LEDBLEState:

power: bool = False
rgb: tuple[int, int, int] = (0, 0, 0)
w: int = 0
Expand Down

0 comments on commit 8844907

Please sign in to comment.