-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
97 lines (89 loc) · 2.44 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
default_install_hook_types:
- commit-msg
- post-checkout
- post-commit
- post-rewrite
- pre-commit
- pre-merge-commit
- pre-push
default_language_version:
python: python3.12.2 # Keep in sync with .tool-versions and pyproject.toml.
default_stages:
- commit
- push
minimum_pre_commit_version: 2.18.1
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
- id: megalinter-incremental
args: &megalinter-args [--flavor, documentation, --release, v7.7.0]
- id: megalinter-full
args: *megalinter-args
## 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.
## Pre-commit
- repo: meta
hooks:
- id: check-useless-excludes
## Natural language
- repo: https://github.com/PrincetonUniversity/blocklint
rev: v0.2.4
hooks:
- id: blocklint
## Git
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.18.4 # Keep in sync with action.yaml and pyproject.toml.
hooks:
- id: commitizen
- id: commitizen-branch
stages:
- post-commit
- post-rewrite
- push
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: check-mailmap
- id: forbid-binary
- id: git-check