Skip to content

Commit 487e331

Browse files
authored
Bump various test dependencies (#10693)
1 parent 23249c0 commit 487e331

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ repos:
99
- id: check-merge-conflict
1010
- id: mixed-line-ending
1111
- id: check-case-conflict
12-
- repo: https://github.com/psf/black
13-
rev: 23.7.0 # must match requirements-tests.txt
12+
- repo: https://github.com/psf/black-pre-commit-mirror
13+
rev: 23.9.1 # must match requirements-tests.txt
1414
hooks:
1515
- id: black
1616
language_version: python3.10
@@ -20,12 +20,12 @@ repos:
2020
- id: isort
2121
name: isort (python)
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: v0.0.280 # must match requirements-tests.txt
23+
rev: v0.0.287 # must match requirements-tests.txt
2424
hooks:
2525
- id: ruff
2626
args: [--exit-non-zero-on-fix]
2727
- repo: https://github.com/pycqa/flake8
28-
rev: 6.0.0 # must match requirements-tests.txt
28+
rev: 6.1.0 # must match requirements-tests.txt
2929
hooks:
3030
- id: flake8
3131
additional_dependencies:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ select = [
9797
]
9898

9999
[tool.typeshed]
100-
pyright_version = "1.1.325"
100+
pyright_version = "1.1.326"

requirements-tests.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
# Type checkers and other linters that we test our stubs against. These should always
22
# be pinned to a specific version to make failure reproducible. See also the
33
# "tool.typeshed" section in pyproject.toml for additional type checkers.
4-
black==23.7.0; python_version >= "3.8" # must match .pre-commit-config.yaml
5-
flake8==6.0.0; python_version >= "3.8" # must match .pre-commit-config.yaml
6-
flake8-bugbear==23.7.10; python_version >= "3.8" # must match .pre-commit-config.yaml
7-
flake8-noqa==1.3.2; python_version >= "3.8" # must match .pre-commit-config.yaml
8-
flake8-pyi==23.6.0; python_version >= "3.8" # must match .pre-commit-config.yaml
9-
isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml
4+
black==23.9.1 # must match .pre-commit-config.yaml
5+
flake8==6.1.0 # must match .pre-commit-config.yaml
6+
flake8-bugbear==23.7.10 # must match .pre-commit-config.yaml
7+
flake8-noqa==1.3.2 # must match .pre-commit-config.yaml
8+
flake8-pyi==23.6.0 # must match .pre-commit-config.yaml
9+
isort==5.12.0 # must match .pre-commit-config.yaml
1010
mypy==1.5.1
11-
pre-commit-hooks==4.4.0 # must match .pre-commit-config.yaml
12-
pytype==2023.8.14; platform_system != "Windows" and python_version >= "3.8" and python_version < "3.11"
13-
ruff==0.0.280 # must match .pre-commit-config.yaml
11+
pre-commit-hooks==4.4.0 # must match .pre-commit-config.yaml
12+
pytype==2023.8.31; platform_system != "Windows" and python_version < "3.11"
13+
ruff==0.0.287 # must match .pre-commit-config.yaml
1414

1515
# Libraries used by our various scripts.
16-
aiohttp==3.8.5; python_version < "3.12" # aiohttp can't be installed on 3.12 yet
16+
aiohttp==3.8.5; python_version < "3.12" # aiohttp can't be installed on 3.12 yet
1717
packaging==23.1
1818
pathspec>=0.11.1
1919
pyyaml==6.0.1
2020
stubdefaulter==0.1.0
2121
termcolor>=2.3
2222
tomli==2.0.1
23-
tomlkit==0.11.8
23+
tomlkit==0.12.1
2424
typing_extensions
2525

2626
# Type stubs used to type check our scripts.

tests/check_consistent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ def check_precommit_requirements() -> None:
191191
precommit_requirements = get_precommit_requirements()
192192
no_txt_entry_msg = "All pre-commit requirements must also be listed in `requirements-tests.txt` (missing {requirement!r})"
193193
for requirement, specifier in precommit_requirements.items():
194-
# annoying: the ruff repo for pre-commit is different to the name in requirements-tests.txt
195-
if requirement == "ruff-pre-commit":
196-
requirement = "ruff"
194+
# annoying: the ruff and black repos for pre-commit are different to the names in requirements-tests.txt
195+
if requirement in {"ruff-pre-commit", "black-pre-commit-mirror"}:
196+
requirement = requirement.split("-")[0]
197197
assert requirement in requirements_txt_requirements, no_txt_entry_msg.format(requirement=requirement)
198198
specifier_mismatch = (
199199
f'Specifier "{specifier}" for {requirement!r} in `.pre-commit-config.yaml` '

0 commit comments

Comments
 (0)