-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
69 lines (67 loc) · 1.33 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
args:
- --allow-multiple-documents
stages:
- commit
exclude: docs
- id: trailing-whitespace
stages:
- commit
exclude: |
(?x)^(
tests/data|
docs
)
- id: check-symlinks
stages:
- commit
exclude: docs
- id: check-json
stages:
- commit
exclude: docs
- id: check-merge-conflict
stages:
- commit
- id: detect-private-key
stages:
- commit
exclude: tests/data/dummy_key
- id: no-commit-to-branch
args: ['--branch=master']
stages:
- commit
- id: check-added-large-files
args: ['--maxkb=500']
stages:
- commit
exclude: docs
- id: check-ast
stages:
- commit
exclude: docs
- id: end-of-file-fixer
stages:
- commit
exclude: |
(?x)^(
tests/data|
docs
)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.280
hooks:
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
exclude: docs
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
exclude: docs