Skip to content

Commit 9da1baf

Browse files
committed
Bump deps and tools
Signed-off-by: Bernát Gábor <[email protected]>
1 parent e9a8b2f commit 9da1baf

File tree

8 files changed

+20
-17
lines changed

8 files changed

+20
-17
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: add-trailing-comma
1818
args: [--py36-plus]
1919
- repo: https://github.com/asottile/pyupgrade
20-
rev: v3.2.0
20+
rev: v3.2.2
2121
hooks:
2222
- id: pyupgrade
2323
args: ["--py37-plus"]
@@ -60,7 +60,7 @@ repos:
6060
- flake8-noqa==1.2.9
6161
- pep8-naming==0.13.2
6262
- repo: https://github.com/pre-commit/mirrors-prettier
63-
rev: "v3.0.0-alpha.4"
63+
rev: "v2.7.1"
6464
hooks:
6565
- id: prettier
6666
additional_dependencies:

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ dependencies = [
2525
"chardet>=5",
2626
"colorama>=0.4.6",
2727
"packaging>=21.3",
28-
"platformdirs>=2.5.2",
28+
"platformdirs>=2.5.4",
2929
"pluggy>=1",
30-
"pyproject-api>=1.1.1",
30+
"pyproject-api>=1.1.2",
3131
'tomli>=2.0.1; python_version < "3.11"',
32-
"virtualenv>=20.16.6",
32+
"virtualenv>=20.16.7",
3333
'importlib-metadata>=5; python_version < "3.8"',
3434
'typing-extensions>=4.4; python_version < "3.8"',
3535
]
3636
optional-dependencies.docs = [
3737
"furo>=2022.9.29",
3838
"sphinx>=5.3",
3939
"sphinx-argparse-cli>=1.10",
40-
"sphinx-autodoc-typehints>=1.19.4",
41-
"sphinx-copybutton>=0.5",
40+
"sphinx-autodoc-typehints>=1.19.5",
41+
"sphinx-copybutton>=0.5.1",
4242
"sphinx-inline-tabs>=2022.1.2b11",
4343
"sphinxcontrib-towncrier>=0.2.1a0",
4444
"towncrier>=22.8",
@@ -52,7 +52,7 @@ optional-dependencies.testing = [
5252
"flaky>=3.7",
5353
"hatch-vcs>=0.2",
5454
"hatchling>=1.11.1",
55-
"psutil>=5.9.3",
55+
"psutil>=5.9.4",
5656
"pytest>=7.2",
5757
"pytest-cov>=4",
5858
"pytest-mock>=3.10",

src/tox/config/cli/parse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def _get_base(args: Sequence[str]) -> tuple[int, ToxHandler, Source]:
4747
tox_parser = ToxParser.base()
4848
parsed = Parsed()
4949
try:
50-
with open(os.devnull, "w") as f:
51-
with redirect_stderr(f):
50+
with open(os.devnull, "w") as file_handler:
51+
with redirect_stderr(file_handler):
5252
tox_parser.parse_known_args(args, namespace=parsed)
5353
except SystemExit:
5454
... # ignore parse errors, such as -va raises ignored explicit argument 'a'

src/tox/pytest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def our_setup_state(value: Sequence[str]) -> State:
300300
if code is None: # pragma: no branch
301301
raise RuntimeError("exit code not set")
302302
out, err = self._capfd.readouterr()
303-
return ToxRunOutcome(args, self.path, code, out, err, state)
303+
return ToxRunOutcome(args, self.path, cast(int, code), out, err, state)
304304

305305
def __repr__(self) -> str:
306306
return f"{type(self).__name__}(path={self.path}) at {id(self)}"

src/tox/session/cmd/run/single.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import logging
77
import time
88
from pathlib import Path
9-
from typing import NamedTuple
9+
from typing import NamedTuple, cast
1010

1111
from tox.config.types import Command
1212
from tox.execute.api import Outcome, StdinSource
@@ -59,7 +59,7 @@ def _evaluate(tox_env: RunToxEnv, no_test: bool) -> tuple[bool, int, list[Outcom
5959
finally:
6060
tox_env.teardown()
6161
except SystemExit as exception: # setup command fails (interrupted or via invocation)
62-
code = exception.code
62+
code = cast(int, exception.code)
6363
return skipped, code, outcomes
6464

6565

@@ -109,9 +109,9 @@ def run_command_set(tox_env: ToxEnv, key: str, cwd: Path, ignore_errors: bool, o
109109
continue
110110
if ignore_errors:
111111
if exit_code == Outcome.OK:
112-
exit_code = exception.code # ignore errors continues ahead but saves the exit code
112+
exit_code = cast(int, exception.code) # ignore errors continues ahead but saves the exit code
113113
continue
114-
return exception.code
114+
return cast(int, exception.code)
115115
return exit_code
116116

117117

tests/config/source/test_source_ini.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from pathlib import Path
24

35
from tox.config.loader.section import Section

tests/type_check/add_config_container_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class EnvDockerConfigSet(ConfigSet):
1010
def register_config(self) -> None:
1111
def factory(container_name: object) -> str: # noqa: U100
12-
...
12+
raise NotImplementedError
1313

1414
self.add_config(
1515
keys=["k"],

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ envlist =
1212
pkg_meta
1313
isolated_build = true
1414
skip_missing_interpreters = true
15+
minversion = 3.22
1516

1617
[testenv]
1718
description = run the tests with pytest under {envname}
@@ -56,7 +57,7 @@ description = run type check on code base
5657
setenv =
5758
{tty:MYPY_FORCE_COLOR = 1}
5859
deps =
59-
mypy==0.982
60+
mypy==0.991
6061
types-cachetools>=5.2.1
6162
types-chardet>=5.0.4
6263
commands =

0 commit comments

Comments
 (0)