Skip to content

Commit

Permalink
Pre-commit run
Browse files Browse the repository at this point in the history
  • Loading branch information
pvsti committed Apr 17, 2024
1 parent de7c1a8 commit 85c8490
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion blebox_uniapi/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ async def async_api_command(self, command: str, value: Any = None) -> None:
self._last_real_update = None # force update
return await self._async_api(False, method, *args)


def expect_int(
self, field: str, raw_value: int, maximum: int = -1, minimum: int = 0
) -> int:
Expand Down
5 changes: 2 additions & 3 deletions blebox_uniapi/jfollow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@


def follow(data: dict | list, path: str) -> Any:

if data is None:
raise RuntimeError(f"bad argument: data {data}") # pragma: no cover

expression = jmespath.compile(path)
return expression.search(data)
return expression.search(data)
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ pytest>=7,<8
pytest-asyncio>=0.14.0
deepmerge==0.1.1
flake8==3.8.4
jmespath==1.0.1
jmespath==1.0.1
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
with open("HISTORY.rst") as history_file:
history = history_file.read()

requirements = [
"aiohttp>=3",
"jmespath>1.0.0"
]
requirements = ["aiohttp>=3", "jmespath>1.0.0"]

setup_requirements = [
"pytest-runner",
Expand Down

0 comments on commit 85c8490

Please sign in to comment.