[html]
show_contexts = true
skip_covered = false

[paths]
_site-packages-to-src-mapping =
  src
  */src
  *\src
  */lib/pypy*/site-packages
  */lib/python*/site-packages
  *\Lib\site-packages

[report]
skip_covered = true
skip_empty = true
show_missing = true
# custom excludes extend baselines from coverage + covdefaults
# for reference, see
# coverage: https://coverage.readthedocs.io/en/latest/excluding.html#default-exclusions
# covdefaults: https://github.com/asottile/covdefaults/blob/8d8712c26ad505f1269851a7c8431b8c1fedaa62/covdefaults.py#L86-L105
exclude_also =
  ^\s*@pytest\.mark\.xfail
  ^\s*if _t\.TYPE_CHECKING:

[run]
branch = true
cover_pylib = false
# https://coverage.rtfd.io/en/latest/contexts.html#dynamic-contexts
# dynamic_context = test_function  # conflicts with `pytest-cov` if set here
parallel = true
plugins =
  covdefaults
relative_files = true
source =
  .
source_pkgs =
  tox_plugins
