Metadata-Version: 2.4
Name: exclude-until-coverage-plugin
Version: 0.4.0
Summary: Plugin for code coverage excluding lines until marker found.
Author-email: Hugh Sorby <h.sorby@auckland.ac.nz>
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/hsorby/exclude_until_coverage_plugin/
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: coverage>=6.4.1
Dynamic: license-file


Exclude Until Coverage Plugin
=============================

.. start-badges

|license|

.. |license| image:: https://img.shields.io/pypi/l/django_coverage_plugin.svg
    :target: https://pypi.python.org/pypi/exclude_until_coverage_plugin
    :alt: Apache 2.0 License

.. end-badges

A `coverage.py`_ plugin that excludes lines until a marker is found.

The plugin is pip installable::

    $ pip install exclude-until-coverage-plugin

To run it, add this setting to your ``.coveragerc`` file::

    [run]
    plugins =
        exclude_until_coverage_plugin

Then run your tests under `coverage.py`_.
This will use the default marker ``# = exclude above lines =`` and exclude all lines above the line this text appears on.
Use the plugin options to change the marker.
To change the marker, add this configuration value to your ``.coveragerc`` file::

    [exclude_until_coverage_plugin]
    marker=# my marker

.. _coverage.py: http://nedbatchelder.com/code/coverage
