-
-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathhookspecs.py
More file actions
30 lines (19 loc) · 779 Bytes
/
hookspecs.py
File metadata and controls
30 lines (19 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from pluggy import HookspecMarker
hookspec = HookspecMarker("devpiweb")
@hookspec
def devpiweb_get_status_info(request):
"""Called on every request to gather status information.
Returns a list of dictionaries with keys ``status`` and ``msg``, where
status is ``warn`` or ``fatal``.
"""
@hookspec
def devpiweb_indexer_backend():
"""return dict containing indexer backend info.
The following keys are defined:
"indexer" - the class implementing the indexer API
"name" - name for selection from command line
"description" - a short description for the commandline help
"""
@hookspec
def devpiweb_modify_preprocess_project_result(project, result):
"""allows to modify the ``result`` dictionary used for indexing."""