-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
72 lines (62 loc) · 2.14 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
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: a11d9314b22d8f8c7556443875b731ef05965464
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- repo: git://github.com/luminopia/pre-commit-hooks
rev: v0.0.11
hooks:
- id: enforce-action-comments
- repo: git://github.com/pre-commit/mirrors-prettier
rev: v2.1.2
hooks:
- id: prettier
exclude: exploration/ # pre-commit was added after this occurred
- repo: https://github.com/pycqa/isort
rev: 5.6.4
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: local
hooks:
- id: dockerfile-lint
name: Dockerfile Lint
language: docker_image
# https://github.com/hadolint/hadolint
entry: hadolint/hadolint:v1.7.0 hadolint
files: ^.*Dockerfile.*$
- id: shellcheck-lint
name: Shellcheck
language: docker_image
# https://github.com/koalaman/shellcheck
entry: koalaman/shellcheck:v0.5.0
types: [shell]
exclude: exploration/ # pre-commit was added after this occurred
- id: markdown-lint
name: Markdown Lint
language: node
# https://github.com/igorshubovych/markdownlint-cli
additional_dependencies: [markdownlint-cli]
entry: markdownlint
types: [markdown]
args: [--config, .markdownlintrc]
exclude: exploration/ # pre-commit was added after this occurred
# TODO: consider adding:
# - https://github.com/pocc/pre-commit-hooks
# - https://github.com/doublify/pre-commit-rust
# - https://github.com/TekWizely/pre-commit-golang
############################
# Custom pre-commit checks #
############################
- id: generate-samples-notebook
name: Compile WAT samples into a Jupyter notebook
language: system
entry: sh -c 'python samples/generate-notebook.py > samples/samples.ipynb'
pass_filenames: false