From ad24708d0c5dca30f4a0cb3533484d1d6ead9a4f Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 23 Dec 2023 10:21:45 -0500 Subject: [PATCH] Re-enable mypy and doctests by relying on import-mode importlib --- pytest.ini | 5 +++-- setup.cfg | 7 +++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pytest.ini b/pytest.ini index 76b1d18..245ccbc 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,7 +1,8 @@ [pytest] norecursedirs=dist build .tox .eggs -# doctests disabled due to pytest-dev/pytest#3396 -# addopts=--doctest-modules +addopts= + --doctest-modules + --import-mode importlib filterwarnings= ## upstream diff --git a/setup.cfg b/setup.cfg index c258360..0a2156a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,10 +32,9 @@ testing = pytest >= 6 pytest-checkdocs >= 2.4 pytest-cov - # disable mypy due to pytest-dev/pytest#3396 - #pytest-mypy; \ - # # workaround for jaraco/skeleton#22 - # python_implementation != "PyPy" + pytest-mypy; \ + # workaround for jaraco/skeleton#22 + python_implementation != "PyPy" pytest-enabler >= 2.2 pytest-ruff >= 0.2.1