From 25884c43cef01953252dc05855ab4734bf5b301b Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 8 Oct 2024 12:23:32 +0100 Subject: [PATCH] Use `env_run_base` from TOML support --- pyproject.toml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ff3a495a..abe7baac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -205,21 +205,25 @@ write_to = "src/sleplet/_version.py" overrides."project.classifiers".inline_arrays = false overrides."tool.coverage.paths.source".inline_arrays = false overrides."tool.ruff.lint.isort.section-order".inline_arrays = false +overrides."tool.tox.env_run_base.commands".inline_arrays = false [tool.tox] env_list = [ "py311", "py312", ] -legacy_tox_ini = """ - [gh] - python = - 3.11: py311 - 3.12: py312 - - [testenv] - commands = - pytest --cov --cov-report=lcov - deps = - pytest-cov -""" +env_run_base = {commands = [ + [ + "pytest", + "--cov", + "--cov-report=lcov", + ], +], deps = [ + "pytest-cov", +]} +# legacy_tox_ini = """ +# [gh] +# python = +# 3.11: py311 +# 3.12: py312 +# """