Skip to content

Commit 34bebb7

Browse files
authored
bump static code checkers (#164)
1 parent 468fe69 commit 34bebb7

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

.pre-commit-config.yaml

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,46 @@
11
repos:
22
- repo: https://github.com/asottile/pyupgrade
3-
rev: v3.3.1
3+
rev: v3.15.0
44
hooks:
55
- id: pyupgrade
66
args: [--py38-plus]
77

88
- repo: https://github.com/PyCQA/autoflake
9-
rev: v2.0.2
9+
rev: v2.2.1
1010
hooks:
1111
- id: autoflake
1212

1313
- repo: https://github.com/psf/black
14-
rev: 23.3.0
14+
rev: 23.9.1
1515
hooks:
1616
- id: black
1717
args:
1818
- --quiet
1919
- --safe
2020

2121
- repo: https://github.com/PyCQA/flake8
22-
rev: 6.0.0
22+
rev: 6.1.0
2323
hooks:
2424
- id: flake8
2525
additional_dependencies:
26-
- flake8-docstrings==1.5.0
27-
- pydocstyle==5.1.1
26+
- flake8-docstrings==1.7.0
27+
- pydocstyle==6.3.0
2828
- Flake8-pyproject==1.2.3
29-
- flake8-bugbear==23.1.20
30-
- flake8-comprehensions==3.10.1
31-
- flake8_2020==1.7.0
29+
- flake8-bugbear==23.9.16
30+
- flake8-comprehensions==3.14.0
31+
- flake8_2020==1.8.1
3232
- mccabe==0.7.0
33-
- pycodestyle==2.10.0
34-
- pyflakes==3.0.1
33+
- pycodestyle==2.11.0
34+
- pyflakes==3.1.0
35+
- flake8-async==22.11.14
3536

3637
- repo: https://github.com/PyCQA/isort
3738
rev: 5.12.0
3839
hooks:
3940
- id: isort
4041

4142
- repo: https://github.com/codespell-project/codespell
42-
rev: v2.2.4
43+
rev: v2.2.6
4344
hooks:
4445
- id: codespell
4546
args:
@@ -48,14 +49,14 @@ repos:
4849
- --quiet-level=2
4950

5051
- repo: https://github.com/pre-commit/mirrors-mypy
51-
rev: v1.3.0
52+
rev: v1.6.0
5253
hooks:
5354
- id: mypy
5455
additional_dependencies:
5556
- zigpy
5657

5758
- repo: https://github.com/charliermarsh/ruff-pre-commit
58-
rev: v0.0.261
59+
rev: v0.0.291
5960
hooks:
6061
- id: ruff
6162
args:

requirements_test.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ flake8
77
codecov
88
colorlog
99
codespell
10-
mypy==1.2.0
10+
mypy==1.6.0
1111
pre-commit
1212
pylint
1313
pytest-cov
1414
pytest-sugar
1515
pytest-timeout
1616
pytest-asyncio>=0.17
1717
pytest>=7.1.3
18-
zigpy>=0.54.1
19-
ruff==0.0.261
18+
zigpy>=0.56.0
19+
ruff>=0.0.291
2020
Flake8-pyproject

tests/test_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_commands():
5757

5858
for cmd_name, cmd_opts in commands.items():
5959
assert isinstance(cmd_name, str) is True
60-
assert all([c in anum for c in cmd_name]), cmd_name
60+
assert all(c in anum for c in cmd_name), cmd_name
6161
assert len(cmd_opts) == 3
6262
cmd_id, schema, reply = cmd_opts
6363
assert isinstance(cmd_id, int) is True

zigpy_xbee/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class DiscoveryStatus(t.uint8_t, UndefinedEnum):
161161

162162

163163
class TXOptions(t.bitmap8):
164-
"""TX Options for eplicit transmit frame."""
164+
"""TX Options for explicit transmit frame."""
165165

166166
NONE = 0x00
167167

0 commit comments

Comments
 (0)