1[pytest]
2testpaths = bidict tests docs
3filterwarnings = error
4addopts =
5  --ignore=docs/conf.py
6  --verbose
7  --doctest-modules
8  --doctest-glob=tests/*.txt
9# pytest's doctest support doesn't support Sphinx extensions
10# (see https://www.sphinx-doc.org/en/latest/usage/extensions/doctest.html)
11# so †est the code in the Sphinx docs using Sphinx rather than pytest
12# (i.e. leave the next line commented out):
13# --doctest-glob=docs/*.rst
14# Only add the following from the docs for the sake of pytest's coverage report:
15  --doctest-glob=docs/extending.rst
16  --benchmark-columns=mean,stddev,outliers
17  --benchmark-group-by=func
18  --benchmark-save-data
19# --benchmark-autosave
20# --benchmark-compare
21# --hypothesis-show-statistics
22doctest_optionflags = IGNORE_EXCEPTION_DETAIL ELLIPSIS
23