Skip to content

Commit cf8db09

Browse files
[pre-commit.ci] pre-commit autoupdate (#3286)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor <[email protected]>
1 parent a261614 commit cf8db09

File tree

9 files changed

+52
-54
lines changed

9 files changed

+52
-54
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.28.3
8+
rev: 0.28.5
99
hooks:
1010
- id: check-github-workflows
1111
args: [ "--verbose" ]
1212
- repo: https://github.com/codespell-project/codespell
13-
rev: v2.2.6
13+
rev: v2.3.0
1414
hooks:
1515
- id: codespell
1616
additional_dependencies: ["tomli>=2.0.1"]
@@ -20,11 +20,11 @@ repos:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "2.1.1"
23+
rev: "2.1.3"
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.4.4"
27+
rev: "v0.4.10"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff
@@ -33,7 +33,7 @@ repos:
3333
rev: 1.16.0
3434
hooks:
3535
- id: blacken-docs
36-
additional_dependencies: [black==24.4]
36+
additional_dependencies: [black==24.4.2]
3737
- repo: https://github.com/pre-commit/pygrep-hooks
3838
rev: v1.10.0
3939
hooks:

pyproject.toml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build-backend = "hatchling.build"
33
requires = [
44
"hatch-vcs>=0.4",
5-
"hatchling>=1.21",
5+
"hatchling>=1.24.2",
66
]
77

88
[project]
@@ -49,47 +49,47 @@ dynamic = [
4949
"version",
5050
]
5151
dependencies = [
52-
"cachetools>=5.3.2",
52+
"cachetools>=5.3.3",
5353
"chardet>=5.2",
5454
"colorama>=0.4.6",
55-
"filelock>=3.13.1",
56-
"importlib-metadata>=7.0.1; python_version<'3.8'",
57-
"packaging>=23.2",
58-
"platformdirs>=4.1",
59-
"pluggy>=1.3",
55+
"filelock>=3.15.3",
56+
"importlib-metadata>=7.2; python_version<'3.8'",
57+
"packaging>=24.1",
58+
"platformdirs>=4.2.2",
59+
"pluggy>=1.5",
6060
"pyproject-api>=1.6.1",
6161
"tomli>=2.0.1; python_version<'3.11'",
62-
"typing-extensions>=4.9; python_version<'3.8'",
63-
"virtualenv>=20.25",
62+
"typing-extensions>=4.12.2; python_version<'3.8'",
63+
"virtualenv>=20.26.2",
6464
]
6565
optional-dependencies.docs = [
66-
"furo>=2023.9.10",
67-
"sphinx>=7.2.6",
68-
"sphinx-argparse-cli>=1.11.1",
69-
"sphinx-autodoc-typehints!=1.23.4,>=1.25.2",
66+
"furo>=2024.5.6",
67+
"sphinx>=7.3.7",
68+
"sphinx-argparse-cli>=1.16",
69+
"sphinx-autodoc-typehints!=1.23.4,>=2.2.1",
7070
"sphinx-copybutton>=0.5.2",
7171
"sphinx-inline-tabs>=2023.4.21",
7272
"sphinxcontrib-towncrier>=0.2.1a0",
7373
"towncrier>=23.11",
7474
]
7575
optional-dependencies.testing = [
76-
"build[virtualenv]>=1.0.3",
76+
"build[virtualenv]>=1.2.1",
7777
"covdefaults>=2.3",
7878
"detect-test-pollution>=1.2",
7979
"devpi-process>=1",
80-
"diff-cover>=8.0.2",
80+
"diff-cover>=9",
8181
"distlib>=0.3.8",
82-
"flaky>=3.7",
82+
"flaky>=3.8.1",
8383
"hatch-vcs>=0.4",
84-
"hatchling>=1.21",
85-
"psutil>=5.9.7",
86-
"pytest>=7.4.4",
87-
"pytest-cov>=4.1",
88-
"pytest-mock>=3.12",
89-
"pytest-xdist>=3.5",
84+
"hatchling>=1.24.2",
85+
"psutil>=6",
86+
"pytest>=8.2.2",
87+
"pytest-cov>=5",
88+
"pytest-mock>=3.14",
89+
"pytest-xdist>=3.6.1",
9090
"re-assert>=1.1",
91-
"time-machine>=2.13; implementation_name!='pypy'",
92-
"wheel>=0.42",
91+
"time-machine>=2.14.1; implementation_name!='pypy'",
92+
"wheel>=0.43",
9393
]
9494
urls.Documentation = "https://tox.wiki"
9595
urls.Homepage = "http://tox.readthedocs.org"
@@ -119,20 +119,6 @@ format.docstring-code-format = true
119119
lint.select = [
120120
"ALL",
121121
]
122-
lint.per-file-ignores."tests/**/*.py" = [
123-
"D", # don't care about documentation in tests
124-
"FBT", # don"t care about booleans as positional arguments in tests
125-
"INP001", # no implicit namespace
126-
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
127-
"S101", # asserts allowed in tests...
128-
"S603", # `subprocess` call: check for execution of untrusted input
129-
]
130-
lint.isort = { known-first-party = [
131-
"tox",
132-
"tests",
133-
], required-imports = [
134-
"from __future__ import annotations",
135-
] }
136122
lint.ignore = [
137123
"ANN101", # Missing type annotation for `self` in method
138124
"ANN102", # Missing type annotation for `cls` in classmethod"
@@ -149,6 +135,20 @@ lint.ignore = [
149135
"S104", # Possible binding to all interfaces
150136
"S404", # Using subprocess is alright.
151137
]
138+
lint.per-file-ignores."tests/**/*.py" = [
139+
"D", # don't care about documentation in tests
140+
"FBT", # don"t care about booleans as positional arguments in tests
141+
"INP001", # no implicit namespace
142+
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
143+
"S101", # asserts allowed in tests...
144+
"S603", # `subprocess` call: check for execution of untrusted input
145+
]
146+
lint.isort = { known-first-party = [
147+
"tox",
148+
"tests",
149+
], required-imports = [
150+
"from __future__ import annotations",
151+
] }
152152
lint.preview = true
153153

154154
[tool.codespell]

src/tox/config/loader/ini/replace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def _replace_ref(env: str | None) -> Pattern[str]:
233233
)
234234

235235

236-
def replace_reference( # noqa: PLR0912, C901
236+
def replace_reference( # noqa: C901
237237
conf: Config,
238238
loader: IniLoader,
239239
value: str,

src/tox/config/loader/str_convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def to_command(value: str) -> Command:
9797
# on Windows quoted arguments will remain quoted, strip it
9898
arg = arg[1:-1] # noqa: PLW2901
9999
args.append(arg)
100-
pos = splitter.instream.tell()
100+
pos = splitter.instream.tell() # type: ignore[attr-defined]
101101
except ValueError:
102102
args.append(value[pos:])
103103
if len(args) == 0:

src/tox/execute/local_sub_process/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ def _pty(key: str) -> tuple[int, int] | None:
322322

323323

324324
__all__ = (
325-
"CREATION_FLAGS",
326325
"SIG_INTERRUPT",
327326
"LocalSubProcessExecuteInstance",
328327
"LocalSubProcessExecutor",

src/tox/execute/local_sub_process/read_via_thread_windows.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
from __future__ import annotations # pragma: win32 cover
44

5+
import _overlapped # type: ignore[import] # pragma: win32 cover # noqa: PLC2701
56
import logging # pragma: win32 cover
67
from asyncio.windows_utils import BUFSIZE # type: ignore[attr-defined] # pragma: win32 cover
78
from time import sleep # pragma: win32 cover
89
from typing import Callable # pragma: win32 cover
910

10-
import _overlapped # type: ignore[import] # pragma: win32 cover # noqa: PLC2701
11-
1211
from .read_via_thread import ReadViaThread # pragma: win32 cover
1312

1413
# mypy: warn-unused-ignores=false

src/tox/tox_env/python/pip/req/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333

3434
class ParsedRequirement:
35-
def __init__(self, req: str, options: dict[str, Any], from_file: str, lineno: int) -> None: # noqa: PLR0912
35+
def __init__(self, req: str, options: dict[str, Any], from_file: str, lineno: int) -> None:
3636
req = req.encode("utf-8").decode("utf-8")
3737
try:
3838
self._requirement: Requirement | Path | str = Requirement(req)

src/tox/tox_env/python/virtual_env/package/cmd_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def read_text(self, filename: str) -> str | None:
161161
except KeyError:
162162
return None
163163

164-
def locate_file(self, path: str | PathLike[str]) -> PathLike[str]:
164+
def locate_file(self, path: str | PathLike[str]) -> Path:
165165
return self._wheel / path # pragma: no cover # not used by us, but part of the ABC
166166

167167

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ commands =
4040
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
4141
skip_install = true
4242
deps =
43-
pre-commit>=3.7
43+
pre-commit>=3.7.1
4444
pass_env =
4545
{[testenv]passenv}
4646
PROGRAMDATA
@@ -51,7 +51,7 @@ commands =
5151
[testenv:type]
5252
description = run type check on code base
5353
deps =
54-
mypy==1.9
54+
mypy==1.10
5555
types-cachetools>=5.3.0.7
5656
types-chardet>=5.0.4.6
5757
commands =
@@ -73,7 +73,7 @@ skip_install = true
7373
deps =
7474
build[virtualenv]>=1.2.1
7575
check-wheel-contents>=0.6
76-
twine>=5
76+
twine>=5.1
7777
commands =
7878
python -m build -o {envtmpdir} -s -w .
7979
twine check {envtmpdir}{/}*
@@ -84,7 +84,7 @@ description = do a release, required posarg of the version number
8484
skip_install = true
8585
deps =
8686
gitpython>=3.1.43
87-
packaging>=24
87+
packaging>=24.1
8888
towncrier>=23.11
8989
commands =
9090
python {toxinidir}/tasks/release.py --version {posargs}

0 commit comments

Comments
 (0)