Skip to content

Commit cc3ad50

Browse files
committed
Add pre-commit config.
1 parent 4099264 commit cc3ad50

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.pre-commit-config.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
fail_fast: true
2+
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks.git
5+
rev: v1.4.0
6+
hooks:
7+
- id: check-added-large-files
8+
args: [--maxkb=5000]
9+
- id: check-byte-order-marker
10+
- id: check-case-conflict
11+
- id: check-json
12+
- id: check-merge-conflict
13+
- id: check-symlinks
14+
- id: check-yaml
15+
args: [--allow-multiple-documents]
16+
- id: detect-aws-credentials
17+
args: [--allow-missing-credentials]
18+
- id: detect-private-key
19+
- id: mixed-line-ending
20+
args: [--fix=lf]
21+
- id: pretty-format-json
22+
args: [--autofix, --indent=2, --no-ensure-ascii]
23+
- id: trailing-whitespace

0 commit comments

Comments
 (0)