-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
108 lines (96 loc) · 2.51 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
101
102
103
104
105
106
107
108
# pre-commit top-level map configuration
repos:
###########################################################
# Global hooks that run on all repositories/subfolders
###########################################################
# General pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: mixed-line-ending
- id: end-of-file-fixer
- id: check-case-conflict
- id: check-merge-conflict
- id: check-docstring-first
- id: check-symlinks
- id: check-ast
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-xml
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: detect-aws-credentials
- id: destroyed-symlinks
- id: debug-statements
- id: pretty-format-json
- id: requirements-txt-fixer
- id: name-tests-test
- id: fix-encoding-pragma
- id: fix-byte-order-marker
# Prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.2
hooks:
- id: prettier
# ESLint
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.32.0
hooks:
- id: eslint
# Python Black
- repo: https://github.com/psf/black
rev: 21.7b0
hooks:
- id: black
language_version: python3
# Pylint
- repo: https://github.com/PyCQA/pylint
rev: v2.9.6
hooks:
- id: pylint
language_version: python3
args: [--rcfile, pylintrc]
# Beautysh
- repo: https://github.com/lovesegfault/beautysh
rev: v6.1.0
hooks:
- id: beautysh
# Shellcheck
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
- id: shellcheck
# Hadolint
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v2.0.1
hooks:
- id: hadolint
# Golang
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.4.0
hooks:
- id: go-fmt
- id: go-vet
- id: go-lint
- id: go-imports
- id: no-go-testing
- id: golangci-lint
- id: go-critic
- id: go-unit-tests
- id: go-build
- id: go-mod-tidy
# Cmake
- repo: https://github.com/cmake-lint/cmake-lint
rev: f214fecd42cef2aa623742dc9888725bc99d32ba
hooks:
- id: cmakelint
# Clang
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.1.1
hooks:
- id: clang-format
- id: clang-tidy
- id: cppcheck