Skip to content

Commit dd6ae87

Browse files
authored
Added precommit hooks (#22)
1 parent 8f417e7 commit dd6ae87

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
- id: assert-news
2+
name: Assert news files
3+
description: Assert that a news file has been added and describes the change.
4+
entry: cd-assert-news -l
5+
language: python
6+
types: [file]
7+
require_serial: true
8+
verbose: true
9+
always_run: true
10+
pass_filenames: false
11+
- id: licensing
12+
name: licensing
13+
entry: cd-license-files
14+
language: python
15+
types: [file]
16+
require_serial: true
17+
always_run: true
18+
verbose: true
19+
pass_filenames: false

news/202108131306.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added a [pre-commit](https://pre-commit.com) hook for ease of use in other repositories

0 commit comments

Comments
 (0)