diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 375b201d..e750585a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: - generate-docs repos: - repo: https://github.com/python-poetry/poetry - rev: 2.2.1 + rev: 2.3.2 hooks: - id: poetry-check - id: poetry-lock @@ -23,7 +23,7 @@ repos: exclude: ^mkdocs\.yml$ - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.13.2 + rev: v0.15.1 hooks: - id: ruff-check args: [--fix] diff --git a/pyasic/miners/factory.py b/pyasic/miners/factory.py index ee7378aa..04083091 100644 --- a/pyasic/miners/factory.py +++ b/pyasic/miners/factory.py @@ -851,8 +851,9 @@ async def _get_miner_web(self, ip: str) -> MinerTypes | None: text, resp = await concurrent_get_first_result( tasks, - lambda x: x[0] is not None - and self._parse_web_type(x[0], x[1]) is not None, + lambda x: ( + x[0] is not None and self._parse_web_type(x[0], x[1]) is not None + ), ) if text is not None: mtype = self._parse_web_type(text, resp)