Skip to content

Commit d812f2e

Browse files
committed
Migrated to native tox TOML configuration
1 parent 0c50de6 commit d812f2e

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

pyproject.toml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,15 @@ strict = true
9898
pretty = true
9999

100100
[tool.tox]
101-
legacy_tox_ini = """
102-
[tox]
103-
envlist = pypy3, py38, py39, py310, py311, py312, py313
101+
env_list = ["py38", "py39", "py310", "py311", "py312", "py313"]
104102
skip_missing_interpreters = true
105-
minversion = 4.0
106103

107-
[testenv]
108-
extras = test
109-
commands = coverage run -m pytest {posargs}
110-
package = editable
104+
[tool.tox.env_run_base]
105+
commands = [["coverage", "run", "-m", "pytest", { replace = "posargs", extend = true }]]
106+
package = "editable"
107+
extras = ["test"]
111108

112-
[testenv:docs]
113-
extras = doc
114-
package = editable
115-
commands = sphinx-build -W -n docs build/sphinx
116-
"""
109+
[tool.tox.env.docs]
110+
depends = []
111+
extras = ["doc"]
112+
commands = [["sphinx-build", "-W", "-n", "docs", "build/sphinx"]]

0 commit comments

Comments
 (0)