[run]
source =
    urllib3
# Needed for Python 3.11 and lower
disable_warnings = no-sysmon

[paths]
source =
    src/urllib3
    */urllib3
    *\urllib3

[report]
omit =
    src/urllib3/contrib/pyopenssl.py
    src/urllib3/contrib/emscripten/*
    src/urllib3/http2/*

exclude_lines =
    ^\s*except ModuleNotFoundError:\s*$
    ^\s*except ImportError:\s*$
    ^\s*pass\s*$
    ^\s*raise NotImplementedError\b
    .*#\s*Platform-specific.*
    .*:.*#\s*Python \d.*
    .*#\s*Abstract\b
    .*#\s*Defensive:
    ^\s*if (?:typing\.)?TYPE_CHECKING:\s*$
    ^\s*\.\.\.\s*$
