-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-hooks.yaml
32 lines (32 loc) · 1.21 KB
/
.pre-commit-hooks.yaml
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
- id: cojira
name: 'cross-check with JIRA when commiting'
description: 'Cross check referenced ticket status in JIRA'
entry: cojira
language: python
stages: [ prepare-commit-msg, manual ]
- id: commiticketing
name: 'prepend commit message with ticket reference'
description: 'Auto-prepend commit message with ticketing system reference based on current branch name.'
entry: commiticketing
language: python
stages: [ prepare-commit-msg, manual ]
- id: no-boms
name: 'check for BOMs'
description: 'Forbids files that have a UTF-8, UTF-16, or UTF-32 byte-order mark (BOM).'
entry: no-boms
language: python
types: [ file ]
stages: [ pre-commit, manual ]
- id: no-todos
name: 'check for TODO tags'
description: 'Forbids files that have a TODO tag (configurable list, by default: TODO, FIXME, XXX).'
entry: no-todos
language: python
types: [ text ]
stages: [ pre-commit, manual ]
- id: lint-commit-message
name: 'basic linting for the commit message itself'
description: 'Check the commit message for best practices based on https://cbea.ms/git-commit/'
entry: lint-commit-message
language: python
stages: [ commit-msg, manual ]