Skip to content

Commit

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

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.1](astral-sh/ruff-pre-commit@v0.7.4...v0.8.1)

* Fix ruff

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Robert Resch <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and edenhaus authored Dec 4, 2024
1 parent 27ee4e7 commit 69f89ba
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ default_language_version:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.8.1
hooks:
- id: ruff
args:
Expand Down
66 changes: 33 additions & 33 deletions deebot_client/commands/json/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,73 +54,73 @@
from .common import JsonCommand

__all__ = [
"Charge",
"Clean",
"CleanArea",
"CleanV2",
"ClearMap",
"GetAdvancedMode",
"SetAdvancedMode",
"GetBattery",
"GetBorderSwitch",
"SetBorderSwitch",
"GetCachedMapInfo",
"GetCarpetAutoFanBoost",
"SetCarpetAutoFanBoost",
"GetCleanCount",
"SetCleanCount",
"GetCleanPreference",
"SetCleanPreference",
"ClearMap",
"Charge",
"GetChildLock",
"SetChildLock",
"GetChargeState",
"Clean",
"CleanV2",
"CleanArea",
"GetChildLock",
"GetCleanCount",
"GetCleanInfo",
"GetCleanInfoV2",
"GetCleanLogs",
"GetCleanPreference",
"GetContinuousCleaning",
"SetContinuousCleaning",
"SetCutDirection",
"GetCutDirection",
"GetCrossMapBorderWarning",
"SetCrossMapBorderWarning",
"GetCutDirection",
"GetEfficiencyMode",
"SetEfficiencyMode",
"GetError",
"GetFanSpeed",
"SetFanSpeed",
"GetLifeSpan",
"ResetLifeSpan",
"GetCachedMapInfo",
"GetMajorMap",
"GetMapSet",
"GetMapSetV2",
"GetMapSubSet",
"GetMapTrace",
"GetMinorMap",
"GetMoveUpWarning",
"SetMoveUpWarning",
"GetMultimapState",
"SetMultimapState",
"GetNetInfo",
"GetOta",
"SetOta",
"PlaySound",
"GetPos",
"SetRelocationState",
"GetSafeProtect",
"SetSafeProtect",
"GetStats",
"GetSweepMode",
"SetSweepMode",
"GetTotalStats",
"GetTrueDetect",
"SetTrueDetect",
"GetVoiceAssistantState",
"SetVoiceAssistantState",
"GetVolume",
"SetVolume",
"GetWaterInfo",
"SetWaterInfo",
"GetWorkMode",
"PlaySound",
"ResetLifeSpan",
"SetAdvancedMode",
"SetBorderSwitch",
"SetCarpetAutoFanBoost",
"SetChildLock",
"SetCleanCount",
"SetCleanPreference",
"SetContinuousCleaning",
"SetCrossMapBorderWarning",
"SetCutDirection",
"SetEfficiencyMode",
"SetFanSpeed",
"SetMoveUpWarning",
"SetMultimapState",
"SetOta",
"SetRelocationState",
"SetSafeProtect",
"SetSweepMode",
"SetTrueDetect",
"SetVoiceAssistantState",
"SetVolume",
"SetWaterInfo",
"SetWorkMode",
]

Expand Down
12 changes: 6 additions & 6 deletions deebot_client/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ def __init__(
super().__init__(iterable)
self._on_change = on_change

def __getattribute__(self, __name: str) -> Any:
if __name in OnChangedList._MODIFYING_FUNCTIONS:
def __getattribute__(self, name: str, /) -> Any:
if name in OnChangedList._MODIFYING_FUNCTIONS:
self._on_change()
return super().__getattribute__(__name)
return super().__getattribute__(name)


_KT = TypeVar("_KT")
Expand All @@ -124,10 +124,10 @@ def __init__(
super().__init__(iterable)
self._on_change = on_change

def __getattribute__(self, __name: str) -> Any:
if __name in OnChangedDict._MODIFYING_FUNCTIONS:
def __getattribute__(self, name: str, /) -> Any:
if name in OnChangedDict._MODIFYING_FUNCTIONS:
self._on_change()
return super().__getattribute__(__name)
return super().__getattribute__(name)


LST = list[_T] | set[_T] | tuple[_T, ...]
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ select = [
]

ignore = [
"ANN101", # Self... explanatory
"ANN102", # Cls... explanatory
"ANN401", # Opinioated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
Expand Down

0 comments on commit 69f89ba

Please sign in to comment.