Skip to content

Bump pre-commit static code checkers versions #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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