From 9d3db3d5a615d4eb08cdf41ab0615685b3517cbe Mon Sep 17 00:00:00 2001 From: willGraham01 <1willgraham@gmail.com> Date: Tue, 30 Jan 2024 13:50:37 +0000 Subject: [PATCH] Move tox into pyproject to be consistent with other bg tools --- pyproject.toml | 25 +++++++++++++++++++++++++ tox.ini | 21 --------------------- 2 files changed, 25 insertions(+), 21 deletions(-) delete mode 100644 tox.ini diff --git a/pyproject.toml b/pyproject.toml index 8ea4ce8..513a48e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,3 +110,28 @@ ignore_errors = true module = ["imlib.cells.*"] ignore_errors = false strict = true + +[tool.tox] +legacy_tox_ini = """ +[tox] +envlist = py{39,310,311} +isolated_build = True + +[gh-actions] +python = + 3.9: py39 + 3.10: py310 + 3.11: py311 + +[testenv] +extras = + dev +commands = + pytest -v --color=yes --cov=brainglobe_utils --cov-report=xml +passenv = + CI + GITHUB_ACTIONS + DISPLAY + XAUTHORITY + PYVISTA_OFF_SCREEN +""" diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 3857869..0000000 --- a/tox.ini +++ /dev/null @@ -1,21 +0,0 @@ -[tox] -envlist = py{39,310,311} -isolated_build = True - -[gh-actions] -python = - 3.9: py39 - 3.10: py310 - 3.11: py311 - -[testenv] -extras = - dev -commands = - pytest -v --color=yes --cov=brainglobe_utils --cov-report=xml -passenv = - CI - GITHUB_ACTIONS - DISPLAY - XAUTHORITY - PYVISTA_OFF_SCREEN