From 9033df4edc08e676f4fc1affabff946ad4dfcb90 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Thu, 2 Jan 2025 20:45:51 +0000 Subject: [PATCH] Enable doctests --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a92c30ab9f..ba804e7620 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -136,7 +136,7 @@ numpy = ["1.25", "2.1"] features = ["gpu"] [tool.hatch.envs.test.scripts] -run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=src" +run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=src --doctest-glob='*.rst'" run-coverage-gpu = "pip install cupy-cuda12x && pytest -m gpu --cov-config=pyproject.toml --cov=pkg --cov=src" run = "run-coverage --no-cov" run-verbose = "run-coverage --verbose" @@ -349,7 +349,7 @@ ignore_errors = true [tool.pytest.ini_options] minversion = "7" -testpaths = ["tests"] +testpaths = ["tests", "docs"] log_cli_level = "INFO" xfail_strict = true asyncio_mode = "auto"