[run]
branch=True
source=trio
omit=
  setup.py
# These are run in subprocesses, but still don't work. We follow
# coverage's documentation to no avail.
  */trio/_core/_tests/test_multierror_scripts/*
# Omit the generated files in trio/_core starting with _generated_
  */trio/_core/_generated_*
# Script used to check type completeness that isn't run in tests
  */trio/_tests/check_type_completeness.py
# The test suite spawns subprocesses to test some stuff, so make sure
# this doesn't corrupt the coverage files
parallel=True

[report]
precision = 1
exclude_lines =
  pragma: no cover
  abc.abstractmethod
  if TYPE_CHECKING:
  if _t.TYPE_CHECKING:

partial_branches =
  pragma: no branch
  if not TYPE_CHECKING:
  if not _t.TYPE_CHECKING:
  if .* or not TYPE_CHECKING:
  if .* or not _t.TYPE_CHECKING:
