Skip to content

Commit 80db13b

Browse files
authored
Bump deps and tools (#2913)
1 parent b7fec1e commit 80db13b

File tree

8 files changed

+60
-53
lines changed

8 files changed

+60
-53
lines changed

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ repos:
2929
hooks:
3030
- id: isort
3131
- repo: https://github.com/psf/black
32-
rev: 22.12.0
32+
rev: 23.1.0
3333
hooks:
3434
- id: black
3535
args: [--safe]
3636
- repo: https://github.com/asottile/blacken-docs
3737
rev: 1.13.0
3838
hooks:
3939
- id: blacken-docs
40-
additional_dependencies: [black==22.12]
40+
additional_dependencies: [black==23.1]
4141
- repo: https://github.com/pre-commit/pygrep-hooks
4242
rev: v1.10.0
4343
hooks:
@@ -52,16 +52,16 @@ repos:
5252
hooks:
5353
- id: flake8
5454
additional_dependencies:
55-
- flake8-bugbear==22.12.6
55+
- flake8-bugbear==23.1.20
5656
- flake8-comprehensions==3.10.1
5757
- flake8-pytest-style==1.6
5858
- flake8-spellcheck==0.28
59-
- flake8-unused-arguments==0.0.12
59+
- flake8-unused-arguments==0.0.13
6060
- flake8-noqa==1.3
6161
- pep8-naming==0.13.3
6262
- flake8-pyproject==1.2.2
6363
- repo: https://github.com/pre-commit/mirrors-prettier
64-
rev: "v3.0.0-alpha.4"
64+
rev: "v2.7.1"
6565
hooks:
6666
- id: prettier
6767
additional_dependencies:

pyproject.toml

+49-38
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,101 @@
11
[build-system]
22
build-backend = "hatchling.build"
3-
requires = ["hatchling>=1.12.2", "hatch-vcs>=0.3"]
3+
requires = [
4+
"hatch-vcs>=0.3",
5+
"hatchling>=1.12.2",
6+
]
47

58
[project]
69
name = "tox"
710
description = "tox is a generic virtualenv management and test command line tool"
8-
readme.file = "README.md"
911
readme.content-type = "text/markdown"
10-
keywords = ["virtual", "environments", "isolated", "testing"]
12+
readme.file = "README.md"
13+
keywords = [
14+
"environments",
15+
"isolated",
16+
"testing",
17+
"virtual",
18+
]
1119
license = "MIT"
12-
urls.Homepage = "http://tox.readthedocs.org"
13-
urls.Documentation = "https://tox.wiki"
14-
urls.Source = "https://github.com/tox-dev/tox"
15-
urls.Tracker = "https://github.com/tox-dev/tox/issues"
16-
urls."Release Notes" = "https://tox.wiki/en/latest/changelog.html"
17-
authors = [{ name = "Bernát Gábor", email = "[email protected]" }]
1820
maintainers = [
1921
{ name = "Anthony Sottile", email = "[email protected]" },
2022
{ name = "Bernát Gábor", email = "[email protected]" },
2123
{ name = "Jürgen Gmach", email = "[email protected]" },
2224
{ name = "Oliver Bestwalter", email = "[email protected]" },
2325
]
26+
authors = [{ name = "Bernát Gábor", email = "[email protected]" }]
2427
requires-python = ">=3.7"
28+
classifiers = [
29+
"Development Status :: 5 - Production/Stable",
30+
"Framework :: tox",
31+
"Intended Audience :: Developers",
32+
"License :: OSI Approved :: MIT License",
33+
"Operating System :: MacOS :: MacOS X",
34+
"Operating System :: Microsoft :: Windows",
35+
"Operating System :: POSIX",
36+
"Programming Language :: Python :: 3",
37+
"Programming Language :: Python :: 3 :: Only",
38+
"Programming Language :: Python :: 3.7",
39+
"Programming Language :: Python :: 3.8",
40+
"Programming Language :: Python :: 3.9",
41+
"Programming Language :: Python :: 3.10",
42+
"Programming Language :: Python :: 3.11",
43+
"Topic :: Software Development :: Libraries",
44+
"Topic :: Software Development :: Testing",
45+
"Topic :: Utilities",
46+
]
47+
dynamic = [
48+
"version",
49+
]
2550
dependencies = [
26-
"cachetools>=5.2.1",
51+
"cachetools>=5.3",
2752
"chardet>=5.1",
2853
"colorama>=0.4.6",
54+
"filelock>=3.9",
55+
'importlib-metadata>=6; python_version < "3.8"',
2956
"packaging>=23",
3057
"platformdirs>=2.6.2",
3158
"pluggy>=1",
3259
"pyproject-api>=1.5",
3360
'tomli>=2.0.1; python_version < "3.11"',
34-
"virtualenv>=20.17.1",
35-
"filelock>=3.9",
36-
'importlib-metadata>=6; python_version < "3.8"',
3761
'typing-extensions>=4.4; python_version < "3.8"',
62+
"virtualenv>=20.17.1",
3863
]
3964
optional-dependencies.docs = [
4065
"furo>=2022.12.7",
4166
"sphinx>=6.1.3",
4267
"sphinx-argparse-cli>=1.11",
43-
"sphinx-autodoc-typehints>=1.20.1",
68+
"sphinx-autodoc-typehints!=1.23.4,>=1.22",
4469
"sphinx-copybutton>=0.5.1",
4570
"sphinx-inline-tabs>=2022.1.2b11",
4671
"sphinxcontrib-towncrier>=0.2.1a0",
4772
"towncrier>=22.12",
4873
]
4974
optional-dependencies.testing = [
50-
"build[virtualenv]>=0.9",
75+
"build[virtualenv]>=0.10",
5176
"covdefaults>=2.2.2",
5277
"devpi-process>=0.3",
53-
"diff-cover>=7.3",
78+
"diff-cover>=7.4",
5479
"distlib>=0.3.6",
5580
"flaky>=3.7",
5681
"hatch-vcs>=0.3",
5782
"hatchling>=1.12.2",
5883
"psutil>=5.9.4",
59-
"pytest>=7.2",
84+
"pytest>=7.2.1",
6085
"pytest-cov>=4",
6186
"pytest-mock>=3.10",
6287
"pytest-xdist>=3.1",
6388
"re-assert>=1.1",
89+
'time-machine>=2.8.2; implementation_name != "pypy"',
6490
"wheel>=0.38.4",
65-
"time-machine>=2.8.2; implementation_name != \"pypy\"",
6691
]
92+
urls.Documentation = "https://tox.wiki"
93+
urls.Homepage = "http://tox.readthedocs.org"
94+
urls."Release Notes" = "https://tox.wiki/en/latest/changelog.html"
95+
urls.Source = "https://github.com/tox-dev/tox"
96+
urls.Tracker = "https://github.com/tox-dev/tox/issues"
6797
scripts.tox = "tox.run:run"
68-
dynamic = ["version"]
69-
classifiers = [
70-
"Development Status :: 5 - Production/Stable",
71-
"Framework :: tox",
72-
"Intended Audience :: Developers",
73-
"License :: OSI Approved :: MIT License",
74-
"Operating System :: MacOS :: MacOS X",
75-
"Operating System :: Microsoft :: Windows",
76-
"Operating System :: POSIX",
77-
"Programming Language :: Python :: 3",
78-
"Programming Language :: Python :: 3 :: Only",
79-
"Programming Language :: Python :: 3.7",
80-
"Programming Language :: Python :: 3.8",
81-
"Programming Language :: Python :: 3.9",
82-
"Programming Language :: Python :: 3.10",
83-
"Programming Language :: Python :: 3.11",
84-
"Topic :: Software Development :: Libraries",
85-
"Topic :: Software Development :: Testing",
86-
"Topic :: Utilities",
87-
]
98+
8899

89100
[tool.hatch]
90101
build.dev-mode-dirs = ["src"]

src/tox/config/cli/ini.py

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def __init__(self) -> None:
3333
if self.has_config_file:
3434
self.config_file = self.config_file.absolute()
3535
try:
36-
3736
parser = ConfigParser(interpolation=None)
3837
with self.config_file.open() as file_handler:
3938
parser.read_file(file_handler)

src/tox/config/cli/parser.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ def add_command(
178178
self.handlers[cmd] = content
179179
for alias in aliases:
180180
self.handlers[alias] = content
181-
for (args, of_type, kwargs) in self._arguments:
181+
for args, of_type, kwargs in self._arguments:
182182
sub_parser.add_argument(*args, of_type=of_type, **kwargs)
183-
for (args, kwargs, excl) in self._groups:
183+
for args, kwargs, excl in self._groups:
184184
group = sub_parser.add_argument_group(*args, **kwargs)
185-
for (e_kwargs, arguments) in excl:
185+
for e_kwargs, arguments in excl:
186186
excl_group = group.add_mutually_exclusive_group(**e_kwargs)
187-
for (a_args, _, a_kwargs) in arguments:
187+
for a_args, _, a_kwargs in arguments:
188188
excl_group.add_argument(*a_args, **a_kwargs)
189189
return sub_parser
190190

src/tox/session/state.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from .env_select import EnvSelector
1010

1111
if TYPE_CHECKING:
12-
1312
from tox.config.cli.parse import Options
1413
from tox.config.cli.parser import ToxParser
1514

tests/config/test_sets.py

-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def test_config_dynamic_not_equal(conf_builder: ConfBuilder) -> None:
142142

143143
def test_define_custom_set(tox_project: ToxProjectCreator) -> None:
144144
class MagicConfigSet(ConfigSet):
145-
146145
SECTION = Section(None, "magic")
147146

148147
def register_config(self) -> None:

tests/tox_env/python/virtual_env/package/test_package_pyproject.py

-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ def test_pyproject_deps_static_with_dynamic(
198198
dynamic: str,
199199
deps: list[str],
200200
) -> None:
201-
202201
monkeypatch.setenv("METADATA_EXTRA", metadata)
203202
toml = f"{(demo_pkg_inline / 'pyproject.toml').read_text()}[project]\ndynamic={dynamic}"
204203
ini = "[testenv]\nextras=alpha\n[testenv:.pkg]\npass_env=METADATA_EXTRA"

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ commands =
5252
description = run type check on code base
5353
deps =
5454
mypy==0.991
55-
types-cachetools>=5.2.1
55+
types-cachetools>=5.3
5656
types-chardet>=5.0.4.1
5757
commands =
5858
mypy src/tox
@@ -70,7 +70,7 @@ commands =
7070
description = check that the long description is valid
7171
skip_install = true
7272
deps =
73-
build[virtualenv]>=0.9
73+
build[virtualenv]>=0.10
7474
check-wheel-contents>=0.4
7575
twine>=4.0.2
7676
commands =

0 commit comments

Comments
 (0)