-
Notifications
You must be signed in to change notification settings - Fork 20
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.35 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: no-commit-to-branch
args: [--branch, main]
- id: check-added-large-files
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: forbid-new-submodules
- id: check-yaml
- id: check-json
- id: check-symlinks
- id: check-xml
- id: end-of-file-fixer
types_or: [c, shell, python]
- id: trailing-whitespace
types_or: [c, shell, python, xml]
- id: check-docstring-first
- id: check-merge-conflict
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args: ['--config', './contrib/codespell.cfg', --write-changes]
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
- repo: local
hooks:
- id: shellcheck
name: check shellscript style
language: system
entry: shellcheck --severity=error -e SC2068
types: [shell]
- id: clang-format
name: clang-format
language: script
entry: ./contrib/reformat-code.py
types: [c]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.31.1
hooks:
- id: markdownlint
args: ['--fix', '--ignore', '.github']