Skip to content

Commit c55dffe

Browse files
committed
mypy: exclude fullcoverage/encodings.py
1 parent c9d473b commit c55dffe

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Diff for: coverage/fullcoverage/encodings.py

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
a problem with coverage.py - that it starts too late to trace the coverage of
1515
many of the most fundamental modules in the Standard Library.
1616
17+
DO NOT import other modules into here, it will interfere with the goal of this
18+
code executing before all imports. This is why this file isn't type-checked.
19+
1720
"""
1821

1922
import sys

Diff for: pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ warn_return_any = true
2323
warn_unreachable = true
2424
warn_unused_configs = true
2525
warn_unused_ignores = true
26+
27+
exclude = """(?x)(
28+
^coverage/fullcoverage/encodings\\.py$ # can't import things into it.
29+
)"""

Diff for: tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ setenv =
102102
C5=coverage/parser.py coverage/phystokens.py coverage/plugin.py coverage/plugin_support.py coverage/python.py
103103
C6=coverage/report.py coverage/results.py coverage/sqldata.py coverage/summary.py
104104
C7=coverage/templite.py coverage/tomlconfig.py coverage/types.py coverage/version.py coverage/xmlreport.py
105+
# not done yet: html.py pytracer.py
105106
TYPEABLE_C={env:C1} {env:C2} {env:C3} {env:C4} {env:C5} {env:C6} {env:C7}
106107
T1=tests/conftest.py tests/coveragetest.py tests/goldtest.py tests/helpers.py tests/mixins.py tests/osinfo.py
107108
T2=tests/test_annotate.py tests/test_api.py tests/test_arcs.py tests/test_cmdline.py tests/test_collector.py tests/test_concurrency.py

0 commit comments

Comments
 (0)