Skip to content

Commit

Permalink
mypy: exclude fullcoverage/encodings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jan 10, 2023
1 parent c9d473b commit c55dffe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coverage/fullcoverage/encodings.py
Expand Up @@ -14,6 +14,9 @@
a problem with coverage.py - that it starts too late to trace the coverage of
many of the most fundamental modules in the Standard Library.
DO NOT import other modules into here, it will interfere with the goal of this
code executing before all imports. This is why this file isn't type-checked.
"""

import sys
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Expand Up @@ -23,3 +23,7 @@ warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true

exclude = """(?x)(
^coverage/fullcoverage/encodings\\.py$ # can't import things into it.
)"""
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -102,6 +102,7 @@ setenv =
C5=coverage/parser.py coverage/phystokens.py coverage/plugin.py coverage/plugin_support.py coverage/python.py
C6=coverage/report.py coverage/results.py coverage/sqldata.py coverage/summary.py
C7=coverage/templite.py coverage/tomlconfig.py coverage/types.py coverage/version.py coverage/xmlreport.py
# not done yet: html.py pytracer.py
TYPEABLE_C={env:C1} {env:C2} {env:C3} {env:C4} {env:C5} {env:C6} {env:C7}
T1=tests/conftest.py tests/coveragetest.py tests/goldtest.py tests/helpers.py tests/mixins.py tests/osinfo.py
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
Expand Down

0 comments on commit c55dffe

Please sign in to comment.