# Coverage.py configuration
# https://coverage.readthedocs.io/en/latest/config.html

[run]
# Measured during test runs via --cov arguments
omit =
    # Test files should not be measured
    */tests/*
    */test_*.py
    **/conftest.py

    # Init files (just beartype configuration)
    */graph/__init__.py
    */tiler/__init__.py

    # Legacy files not covered by tests
    */graph/resnet50.py
    */graph/clean_onnx_graph.py

[report]
# Show line numbers of missing coverage
show_missing = True

# Fail if coverage is below this percentage
fail_under = 91

# Exclude lines from coverage
exclude_lines =
    # Standard pragma
    pragma: no cover

    # Don't complain about missing debug-only code
    def __repr__

    # Don't complain if tests don't hit defensive assertion code
    raise AssertionError
    raise NotImplementedError

    # Don't complain if non-runnable code isn't run
    if __name__ == .__main__.:

    # Don't complain about abstract methods
    @abstractmethod

[html]
# Directory for HTML coverage report
directory = htmlcov

[xml]
# Output file for XML coverage report (for CI)
output = coverage.xml
