From 63a11fac4490a0a4eb91ae1d48b7748ac01572e9 Mon Sep 17 00:00:00 2001 From: hannah Date: Sat, 14 Oct 2023 22:27:15 -0400 Subject: [PATCH] move pytest configs from .ini to.toml remove configs that are now defaults Co-authored-by: Elliott Sales de Andrade --- pyproject.toml | 7 +++++++ pytest.ini | 12 ------------ 2 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 pytest.ini diff --git a/pyproject.toml b/pyproject.toml index 4bdab4eb93c7..ba090844331e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -291,3 +291,10 @@ ignore_messages = [ "No role entry for \"external+.*\".", "Unknown interpreted text role \"external+.*\"." ] + +[tool.pytest.ini_options] +# Because tests can be run from an installed copy, most of our Pytest +# configuration is in the `pytest_configure` function in +# `lib/matplotlib/testing/conftest.py`. +minversion = "7.0" +testpaths = ["lib"] diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 68920f59be01..000000000000 --- a/pytest.ini +++ /dev/null @@ -1,12 +0,0 @@ -# Because tests can be run from an installed copy, most of our Pytest -# configuration is in the `pytest_configure` function in -# `lib/matplotlib/testing/conftest.py`. This configuration file exists only to -# set a minimum pytest version and to prevent pytest from wasting time trying -# to check examples and documentation files that are not really tests. - -[pytest] -minversion = 7.0.0 - -testpaths = lib -python_files = test_*.py -junit_family = xunit2