aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJ08nY2025-11-30 15:06:14 +0100
committerJ08nY2025-11-30 15:06:14 +0100
commit341f276fcf8eb2f4f5f334abbe2c34c073758b92 (patch)
treef595116a5b9ab130fb095f9ac5eed8c681238ef7
parentd1946d8eca985eb2ae5cd6db60afc3196f6cd5ce (diff)
downloadpyecsca-341f276fcf8eb2f4f5f334abbe2c34c073758b92.tar.gz
pyecsca-341f276fcf8eb2f4f5f334abbe2c34c073758b92.tar.zst
pyecsca-341f276fcf8eb2f4f5f334abbe2c34c073758b92.zip
Move doctest import ignore.
-rw-r--r--Makefile8
-rw-r--r--pyproject.toml2
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