-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
65 lines (58 loc) · 1.63 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
repos:
# Automatically fix issues.
## Python, Polyglot, Git, pre-commit
- repo: https://github.com/ScribeMD/pre-commit-hooks
rev: 0.16.3
hooks:
- id: no-merge-commits
# - id: asdf-install
- id: poetry-check
- id: poetry-lock
- id: poetry-install
- id: pre-commit-install
## Markdown
- repo: https://github.com/frnmst/md-toc
rev: 8.2.3
hooks:
- id: md-toc
## Python, TOML, Polyglot, Git
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
### Automatically fix issues.
- id: end-of-file-fixer
- id: file-contents-sorter
files: \.dictionary\.txt
args: [--ignore-case, --unique]
- id: fix-byte-order-marker
- id: mixed-line-ending
args: [--fix=lf]
### Check for issues.
- id: check-added-large-files
args: [--enforce-all]
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: forbid-submodules
- id: no-commit-to-branch
# Check for issues.
## Natural language
- repo: https://github.com/PrincetonUniversity/blocklint
rev: v0.2.4
hooks:
- id: blocklint
## Git
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: check-mailmap
- id: forbid-binary
- id: git-check