diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08bb17b..7524317 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,17 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.15.0 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/PyCQA/autoflake - rev: v2.0.2 + rev: v2.2.1 hooks: - id: autoflake - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.9.1 hooks: - id: black args: @@ -19,19 +19,20 @@ repos: - --safe - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 6.1.0 hooks: - id: flake8 additional_dependencies: - - flake8-docstrings==1.5.0 - - pydocstyle==5.1.1 + - flake8-docstrings==1.7.0 + - pydocstyle==6.3.0 - Flake8-pyproject==1.2.3 - - flake8-bugbear==23.1.20 - - flake8-comprehensions==3.10.1 - - flake8_2020==1.7.0 + - flake8-bugbear==23.9.16 + - flake8-comprehensions==3.14.0 + - flake8_2020==1.8.1 - mccabe==0.7.0 - - pycodestyle==2.10.0 - - pyflakes==3.0.1 + - pycodestyle==2.11.0 + - pyflakes==3.1.0 + - flake8-async==22.11.14 - repo: https://github.com/PyCQA/isort rev: 5.12.0 @@ -39,7 +40,7 @@ repos: - id: isort - repo: https://github.com/codespell-project/codespell - rev: v2.2.4 + rev: v2.2.6 hooks: - id: codespell args: @@ -48,14 +49,14 @@ repos: - --quiet-level=2 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.3.0 + rev: v1.6.0 hooks: - id: mypy additional_dependencies: - zigpy - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.261 + rev: v0.0.291 hooks: - id: ruff args: diff --git a/requirements_test.txt b/requirements_test.txt index 8e3a9e6..96ab54b 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -7,7 +7,7 @@ flake8 codecov colorlog codespell -mypy==1.2.0 +mypy==1.6.0 pre-commit pylint pytest-cov @@ -15,6 +15,6 @@ pytest-sugar pytest-timeout pytest-asyncio>=0.17 pytest>=7.1.3 -zigpy>=0.54.1 -ruff==0.0.261 +zigpy>=0.56.0 +ruff>=0.0.291 Flake8-pyproject diff --git a/tests/test_api.py b/tests/test_api.py index ab3342c..74c05de 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -57,7 +57,7 @@ def test_commands(): for cmd_name, cmd_opts in commands.items(): assert isinstance(cmd_name, str) is True - assert all([c in anum for c in cmd_name]), cmd_name + assert all(c in anum for c in cmd_name), cmd_name assert len(cmd_opts) == 3 cmd_id, schema, reply = cmd_opts assert isinstance(cmd_id, int) is True diff --git a/zigpy_xbee/types.py b/zigpy_xbee/types.py index dee3894..f4b6b23 100644 --- a/zigpy_xbee/types.py +++ b/zigpy_xbee/types.py @@ -161,7 +161,7 @@ class DiscoveryStatus(t.uint8_t, UndefinedEnum): class TXOptions(t.bitmap8): - """TX Options for eplicit transmit frame.""" + """TX Options for explicit transmit frame.""" NONE = 0x00