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