Skip to content

Commit b6f3b8b

Browse files
authored
First attempt at tomlifying tox (#173)
Following tox-dev/tox#3353 there is now full native TOML support for `tox`
1 parent 91b6838 commit b6f3b8b

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

pyproject.toml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,17 @@ overrides."tool.coverage.paths.source".inline_arrays = false
140140
overrides."tool.ruff.lint.isort.section-order".inline_arrays = false
141141

142142
[tool.tox]
143+
env_list = [
144+
"py310-linux",
145+
"py310-macos",
146+
"py310-windows",
147+
"py311-linux",
148+
"py311-macos",
149+
"py311-windows",
150+
"py312-linux",
151+
"py312-macos",
152+
"py312-windows",
153+
]
143154
legacy_tox_ini = """
144155
[gh-actions]
145156
python =
@@ -152,13 +163,9 @@ legacy_tox_ini = """
152163
ubuntu-latest: linux
153164
macos-latest: macos
154165
windows-latest: windows
155-
156-
[testenv]
157-
commands =
158-
pytest --cov --cov-report=lcov
159-
deps =
160-
pytest-cov
161-
162-
[tox]
163-
env_list = py{310,311,312}-{linux,macos,windows}
164166
"""
167+
env.testenv = {commands = [
168+
"pytest --cov --cov-report=lcov",
169+
], deps = [
170+
"pytest-cov",
171+
]}

0 commit comments

Comments
 (0)