InstallationΒΆ

python3 -m pip install coverage_pyver_pragma --user

Then enable the plugin in your coverage configuration. The .coveragerc file in the repository root should contain the following options:

[run]
plugins =
    coverage_pyver_pragma

Alternatively you can put the configuration in the setup.cfg or tox.ini files like so:

[coverage:run]
plugins =
    coverage_pyver_pragma