From 545bc2ab2b27c1f969dc15b738165c2c86663fa9 Mon Sep 17 00:00:00 2001 From: momooo15 <58902075+momooo15@users.noreply.github.com> Date: Mon, 26 Oct 2026 15:41:45 +0800 Subject: [PATCH] Include package doctests in the default test run --- pyproject.toml | 4 ++-- tox.ini | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 63817fec..0067c204 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,10 +110,10 @@ num_workers = 4 show_error_codes = true [tool.pytest] -addopts = [ "--color=yes" ] +addopts = [ "--color=yes", "--doctest-modules", "--pyargs" ] filterwarnings = [ "error" ] minversion = "9.0" -testpaths = [ "tests" ] +testpaths = [ "tests", "humanize" ] [tool.coverage] run.disable_warnings = [ "no-sysmon" ] # 3.11 diff --git a/tox.ini b/tox.ini index 9197a76d..de0e5095 100644 --- a/tox.ini +++ b/tox.ini @@ -41,6 +41,3 @@ deps = -r requirements-mypy.txt commands = mypy . {posargs} - -[pytest] -addopts = --color=yes --doctest-modules