From 4260cba4b88d47928468b64e6365e680d6f123a5 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Fri, 3 Oct 2025 13:47:08 +0200 Subject: [PATCH] pyproject: move pytest configuration to pyproject.toml With pytest 6 this is now supported. --- MANIFEST.in | 1 - pyproject.toml | 4 ++++ pytest.ini | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 pytest.ini diff --git a/MANIFEST.in b/MANIFEST.in index 49dc944..5c6df2d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,6 +3,5 @@ include README.md include NEWS include LICENSE.txt include Makefile -include pytest.ini graft docs exclude docs/__pycache__/* diff --git a/pyproject.toml b/pyproject.toml index dc75dfa..cec5d80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,3 +57,7 @@ exclude_lines = [ "raise AssertionError", "raise NotImplementedError", ] + +[tool.pytest.ini_options] +addopts = "--doctest-modules --doctest-glob=*.rst --ignore=setup.py" +norecursedirs = ".git build" diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index c5beb19..0000000 --- a/pytest.ini +++ /dev/null @@ -1,3 +0,0 @@ -[pytest] -addopts = --doctest-modules --doctest-glob=*.rst --ignore=setup.py -norecursedirs = .git build