/
.pre-commit-config.yaml
50 lines (50 loc) · 1.42 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
# Check out https://pre-commit.com/ for documentation
# and https://pre-commit.com/hooks.html for more hooks
minimum_pre_commit_version: 2.20.0
repos:
# --- Built-in hooks --
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-symlinks
- id: check-case-conflict
- id: fix-byte-order-marker
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-toml
- id: check-json
- id: fix-encoding-pragma
args: ["--remove"]
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- id: check-yaml
exclude: ^recipes/.*
# --- Commit messages ---
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.29.5
hooks:
- id: commitizen
stages: ["commit-msg"]
# --- Linters ---
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: ["black==22.6.0"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
stages: [commit]
exclude: ^recipes/.*