[pytest] minversion = 8.4 required_plugins = pytest-cov hypothesis testpaths = tests src # Lets tests import shared helpers (conftest constants, fakes) directly. pythonpath = tests norecursedirs = *.egg .eggs dist build docs .tox .git .pixi .venv node_modules __pycache__ .hypothesis .pytest_cache .ruff_cache htmlcov python_files = test_*.py doctest_optionflags = NUMBER NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ELLIPSIS # The default run skips the slow and networked suites; `-m live` on the # command line replaces this selection. addopts = --strict-markers --strict-config --import-mode=importlib --tb=short --doctest-modules --doctest-continue-on-failure --maxfail=2 -ra -m "not live" markers = live: hits real public services; needs network (and any API keys it names) xfail_strict = true empty_parameter_set_mark = fail_at_collect # Turn every warning into an error so deprecations surface immediately. filterwarnings = error # Dump tracebacks of all threads if a single test hangs this long. faulthandler_timeout = 300