Skip to content

Commit 5000bfe

Browse files
committed
Migrated tox configuration to native TOML
1 parent 427220d commit 5000bfe

File tree

1 file changed

+16
-23
lines changed

1 file changed

+16
-23
lines changed

pyproject.toml

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,27 +89,20 @@ reportUnnecessaryTypeIgnoreComment = true
8989
warn_unused_ignores = true
9090

9191
[tool.tox]
92-
legacy_tox_ini = """
93-
[tox]
94-
envlist = py37, py38, py39, py310, py311, py312, py313, pypy3
95-
labels =
96-
typing = py{310,311,312}-typing
92+
env_list = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3"]
9793
skip_missing_interpreters = true
98-
minversion = 4.0
99-
100-
[testenv]
101-
extras = test
102-
commands = python -m pytest {posargs}
103-
package = editable
104-
usedevelop = true
105-
106-
[testenv:{py37-,py38-,py39-,py310-,py311-,py312-,}typing]
107-
deps =
108-
pyright
109-
mypy
110-
commands =
111-
pyright --verifytypes exceptiongroup
112-
pyright tests/check_types.py
113-
mypy tests/check_types.py
114-
usedevelop = true
115-
"""
94+
labels = {typing = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]}
95+
requires = ["tox >= 4.22"]
96+
97+
[tool.tox.env_run_base]
98+
commands = [["python", "-m", "pytest", { replace = "posargs", extend = true }]]
99+
package = "editable"
100+
dependency_groups = ["test"]
101+
102+
[tool.tox.env.typing]
103+
commands = [
104+
["pyright", "--verifytypes", "exceptiongroup"],
105+
["pyright", "tests/check_types.py"],
106+
["mypy", "tests/check_types.py"],
107+
]
108+
deps = ["pyright", "mypy"]

0 commit comments

Comments
 (0)