forked from MariaDB/buildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
58 lines (58 loc) · 1.74 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
---
exclude: "dockerfiles|ci_build_images/qpress|cross-reference/crossreference/cr/static/cr/font-awesome"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
name: Check yaml files
- id: debug-statements
name: Check for Python debug statements
- id: trailing-whitespace
name: Check trailing whitespace
args: [--markdown-linebreak-ext=md]
# - repo: https://gitlab.com/pycqa/flake8.git
# rev: 3.9.2
# hooks:
# - id: flake8
# name: Check python (flake8)
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.28.0
hooks:
- id: yamllint
name: Check yaml files (yamllint)
- repo: https://github.com/fauust/pre-commit-shell
rev: v1.1
hooks:
- id: shellcheck
name: Check shell script (shellcheck)
args: ["-x"]
# - id: shfmt
# name: Check shell style (shfmt)
# args: ["-d", "-i", "2", "-ci"]
- repo: https://github.com/markdownlint/markdownlint
rev: v0.11.0
hooks:
- id: markdownlint
name: Check for markdown lint (mdl)
- repo: https://github.com/codespell-project/codespell
rev: v2.2.1
hooks:
- id: codespell
name: Checks for common misspellings in text files
entry: codespell
language: python
- repo: local
hooks:
- id: docker-hadolint
name: Run hadolint with docker
language: docker_image
entry: hadolint/hadolint:latest hadolint
files: Dockerfile