-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
39 lines (36 loc) · 1 KB
/
.pre-commit-config.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
33
34
35
36
37
38
39
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: fix-byte-order-marker
- id: trailing-whitespace
exclude_types: [markdown]
- repo: local
hooks:
- id: reduce-item
name: script/reduce-item.sh
entry: script/reduce-item.sh
language: system
files: '^data/[^_][^/]*\.csv$'
- repo: local
hooks:
- id: check-props
name: script/check-props.sh
entry: script/check-props.sh
language: system
files: '^data/_properties\.csv$'
- repo: local
hooks:
- id: git-diff
name: git diff
entry: git diff --exit-code
language: system
always_run: true
stages: [manual]