From 341f276fcf8eb2f4f5f334abbe2c34c073758b92 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sun, 30 Nov 2025 15:06:14 +0100 Subject: Move doctest import ignore. --- Makefile | 8 ++++---- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 67ecd7e..ae727d2 100644 --- a/Makefile +++ b/Makefile @@ -3,16 +3,16 @@ PERF_SCRIPTS = test.ec.perf_mod test.ec.perf_formula test.ec.perf_mult test.sca. all: help test: - pytest -m "not slow" --cov=pyecsca --doctest-ignore-import-errors + pytest -m "not slow" --cov=pyecsca test-plots: - env PYECSCA_TEST_PLOTS=1 pytest -m "not slow" --doctest-ignore-import-errors + env PYECSCA_TEST_PLOTS=1 pytest -m "not slow" test-all: - pytest --cov=pyecsca --doctest-ignore-import-errors + pytest --cov=pyecsca test-notebooks: - pytest -m "not slow" --doctest-ignore-import-errors --nbmake --cov=pyecsca --cov-append notebook/simulation.ipynb notebook/visualization.ipynb + pytest -m "not slow" --nbmake --cov=pyecsca --cov-append notebook/simulation.ipynb notebook/visualization.ipynb typecheck: mypy --namespace-packages -p pyecsca --ignore-missing-imports --show-error-codes --check-untyped-defs diff --git a/pyproject.toml b/pyproject.toml index da0a9f1..625af65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,7 +94,7 @@ markers = [ "slow: marks tests as slow (deselect with '-m \"not slow\"')", ] - addopts = ["--doctest-modules"] + addopts = ["--doctest-modules", "--doctest-ignore-import-errors"] filterwarnings = [ "ignore:(?s).*pkg_resources is deprecated as an API:UserWarning:chipwhisperer.capture.trace.TraceWhisperer", # ChipWhisperer "ignore:Deprecated call to `pkg_resources.declare_namespace", # sphinxcontrib -- cgit v1.3.1