Skip to content

Commit

Permalink
bump static code checkers (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shulyaka authored Oct 11, 2023
1 parent 468fe69 commit 34bebb7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
29 changes: 15 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
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:
- --quiet
- --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
hooks:
- id: isort

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.6
hooks:
- id: codespell
args:
Expand All @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ flake8
codecov
colorlog
codespell
mypy==1.2.0
mypy==1.6.0
pre-commit
pylint
pytest-cov
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
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion zigpy_xbee/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 34bebb7

Please sign in to comment.