From b6f3b8b83e8f5e69d7eee0a51e12552f7f27dd38 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 1 Oct 2024 10:19:13 +0100 Subject: [PATCH] First attempt at tomlifying `tox` (#173) Following https://github.com/tox-dev/tox/pull/3353 there is now full native TOML support for `tox` --- pyproject.toml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index aeab59f..b0b351b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,6 +140,17 @@ overrides."tool.coverage.paths.source".inline_arrays = false overrides."tool.ruff.lint.isort.section-order".inline_arrays = false [tool.tox] +env_list = [ + "py310-linux", + "py310-macos", + "py310-windows", + "py311-linux", + "py311-macos", + "py311-windows", + "py312-linux", + "py312-macos", + "py312-windows", +] legacy_tox_ini = """ [gh-actions] python = @@ -152,13 +163,9 @@ legacy_tox_ini = """ ubuntu-latest: linux macos-latest: macos windows-latest: windows - - [testenv] - commands = - pytest --cov --cov-report=lcov - deps = - pytest-cov - - [tox] - env_list = py{310,311,312}-{linux,macos,windows} """ +env.testenv = {commands = [ + "pytest --cov --cov-report=lcov", +], deps = [ + "pytest-cov", +]}