forked from pre-commit/pre-commit.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hooks.mako
32 lines (28 loc) · 871 Bytes
/
hooks.mako
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
31
32
## -*- coding: utf-8 -*-
<%inherit file="base.mako" />
<div class="page-header"><h1>Supported hooks</h1></div>
<p>
To add to this list, fork <a href="https://github.com/pre-commit/pre-commit.com">this repository</a>.
</p>
<p>
Also available in <a href="/all-hooks.json">json</a>.
</p>
% for repository, hooks in all_hooks.items():
<h3>
<a href="${repository}" target="_blank">
${repository.replace('https://', '')}
</a>
</h3>
<ul>
% for hook_dict in hooks:
<li>
<code>${hook_dict['id']}</code>
% if 'description' in hook_dict:
- ${hook_dict['description']}
% elif hook_dict['name'].lower() != hook_dict['id'].lower():
- ${hook_dict['name']}
% endif
</li>
% endfor
</ul>
% endfor