-
-
Notifications
You must be signed in to change notification settings - Fork 565
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
54 lines (52 loc) · 1.39 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
54 lines (52 loc) · 1.39 KB
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
# To use: pre-commit run -a
# Or: pre-commit install # (runs every time you commit in git)
# To update this file: pre-commit autoupdate
# See https://github.com/pre-commit/pre-commit
ci:
autoupdate_commit_msg: "chore: update pre-commit hooks"
autofix_commit_msg: "style: pre-commit fixes"
repos:
# Standard hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-builtin-literals
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-merge-conflict
- id: check-symlinks
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: check-ast
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-executables-have-shebangs
exclude: |
(?x)^(
.*.bat|
.*.ps1
)$
- id: trailing-whitespace
exclude: |
(?x)^(
.*\.md|
.github/ISSUE_TEMPLATE/.*\.yml
)$
- repo: https://github.com/oliv5/pre-commit-indents-to-spaces
rev: v0.0.3
hooks:
- id: indents-to-spaces
args: ["--spaces=4"]
types: [python]
- id: indents-to-spaces
args: ["--spaces=2"]
types: [file]
files: \.(json|js|css|html|md|yaml|toml|sh)$