-
Notifications
You must be signed in to change notification settings - Fork 40
/
.pre-commit-config.yaml
50 lines (46 loc) · 1.39 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
40
41
42
43
44
45
46
47
48
49
50
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: no-commit-to-branch
args: [--pattern, ^v]
# - id: check-added-large-files
# args: [--maxkb=16]
- id: check-case-conflict
- id: check-yaml
- id: check-xml
- id: check-toml
- id: check-merge-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: pretty-format-json
args: [--autofix, --indent=4, --no-ensure-ascii]
# - id: detect-aws-credentials
- id: detect-private-key
- id: fix-encoding-pragma
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.991
# hooks:
# - id: mypy
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0 # Use the ref you want to point at
hooks:
- id: python-use-type-annotations
# - repo: https://github.com/sonatype-nexus-community/jake
# rev: "v3.0.0"
# hooks:
# - id: scan
# - repo: https://github.com/executablebooks/mdformat
# rev: 0.7.16 # Use the ref you want to point at
# hooks:
# - id: mdformat
# exclude: doc/CN/project/detection.md # messes up image['file_name']