forked from instructlab/taxonomy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
100 lines (96 loc) · 2.46 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
98
99
100
---
fail_fast: true
repos:
- hooks:
- id: commitizen
stages:
- commit-msg
repo: https://github.com/commitizen-tools/commitizen
rev: v3.16.0
- hooks:
- id: check-useless-excludes
repo: meta
- hooks:
- files: \.(css|js|md|markdown|json)
id: prettier
repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
- hooks:
- id: seed-isort-config
repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
- hooks:
- id: isort
repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
- hooks:
- id: black
repo: https://github.com/python/black
rev: 24.2.0
- hooks:
- id: check-added-large-files
args: [--maxkb=10000]
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: debug-statements
- id: check-xml
- args:
- --unsafe
id: check-yaml
- id: end-of-file-fixer
- id: forbid-new-submodules
- args:
- --branch
- gh-pages
id: no-commit-to-branch
- id: requirements-txt-fixer
- id: sort-simple-yaml
- id: trailing-whitespace
- id: mixed-line-ending
- id: detect-private-key
- id: check-byte-order-marker
- id: check-docstring-first
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
- hooks:
- id: flake8
repo: https://github.com/pycqa/flake8
rev: 7.0.0
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1
hooks:
# Choose one of:
- id: shfmt # native (requires/installs Go to build)
args:
- -w
- -i
- "4"
- -s
types:
- shell
- hooks:
- id: blacken-docs
repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
# - repo: https://github.com/asottile/pyupgrade
# rev: v2.38.0
# hooks:
# - id: pyupgrade
# args: [--py39-plus]
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3 # or other specific tag
hooks:
- id: yamlfmt
args: [--mapping, "2", --sequence, "4", --offset, "2", "--preserve-quotes"]
- repo: https://github.com/hcodes/yaspeller.git
rev: v10.0.1
hooks:
- id: yaspeller
files: \.en\.md
types:
- markdown