-
Notifications
You must be signed in to change notification settings - Fork 209
Expand file tree
/
Copy pathhookspecs.py
More file actions
16 lines (12 loc) · 497 Bytes
/
Copy pathhookspecs.py
File metadata and controls
16 lines (12 loc) · 497 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pluggy
hookspec = pluggy.HookspecMarker("diff_cover")
@hookspec
def diff_cover_report_quality(reports, options): # pylint: disable=unused-argument
"""
Return a 2-part tuple:
- Quality plugin name
- Object that implements the BaseViolationReporter protocol
``reports`` is the list of open pre-generated report file handles and
``options`` the user options string; both are passed by ``diff-quality``.
A plugin may declare either or neither argument.
"""