forked from tiacsys/bridle-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (42 loc) · 1.43 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.0.0
hooks:
- id: commitizen
stages: [commit-msg]
- id: commitizen-branch
stages: [pre-push]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: ".gitignore"
- id: mixed-line-ending
exclude: ".gitignore"
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-case-conflict
- id: check-added-large-files
args: ['--maxkb=20480']
- id: check-executables-have-shebangs
- id: check-vcs-permalinks
- id: check-symlinks
- id: destroyed-symlinks
- id: detect-private-key
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.19
hooks:
- id: mdformat # CommonMark compliant Markdown formatter
additional_dependencies:
- mdformat-gfm # plugin for GitHub Flavored Markdown (GFM)
- mdformat-myst # plugin for Markedly Structured Text (MyST)
- mdformat-black # plugin for Blacken Python code blocks
- repo: https://github.com/rstcheck/rstcheck
rev: v6.2.4
hooks:
- id: rstcheck # Checks syntax of reStructuredText
additional_dependencies: [sphinx]