mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 20:16:53 +00:00
31 lines
1.3 KiB
Python
31 lines
1.3 KiB
Python
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
|
|
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
|
|
"""
|
|
Code coverage measurement for Python.
|
|
|
|
Ned Batchelder
|
|
https://coverage.readthedocs.io
|
|
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from coverage.control import Coverage as Coverage
|
|
from coverage.control import process_startup as process_startup
|
|
from coverage.data import CoverageData as CoverageData
|
|
from coverage.exceptions import CoverageException as CoverageException
|
|
from coverage.plugin import CoveragePlugin as CoveragePlugin
|
|
from coverage.plugin import FileReporter as FileReporter
|
|
from coverage.plugin import FileTracer as FileTracer
|
|
from coverage.version import __version__ as __version__
|
|
from coverage.version import version_info as version_info
|
|
# mypy's convention is that "import as" names are public from the module.
|
|
# We import names as themselves to indicate that. Pylint sees it as pointless,
|
|
# so disable its warning.
|
|
# pylint: disable=useless-import-alias
|
|
|
|
# Backward compatibility.
|
|
coverage = Coverage
|
|
|
|
# On Windows, we encode and decode deep enough that something goes wrong and
|
|
# the encodings.utf_8 module is loaded and then unloaded, I don't know why.
|
|
# Adding a reference here prevents it from being unloaded. Yuk.
|