This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
96 lines (87 loc) · 2.38 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-json
- id: check-symlinks
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-encoding-pragma
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/trussworks/pre-commit-hooks
rev: v1.1.1
hooks:
- id: gen-docs
args: ["docs/adr"]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm
- mdformat-toc
exclude: >
(?x)^(
.github/ISSUE_TEMPLATE/.*.md|
)$
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
exclude: >
(?x)^(
.github/ISSUE_TEMPLATE/.*.md|
ops/synthetics/smoke-test/nodejs/node_modules/.*.js
)$
- repo: local
hooks:
- id: eslint-client
name: eslint-client
entry: yarn --cwd client lint
language: node
files: \.(js|jsx|ts|tsx)$
pass_filenames: false
- id: eslint-e2e
name: eslint-e2e
entry: yarn --cwd e2e lint
language: node
files: \.(js|jsx|ts|tsx)$
pass_filenames: false
- id: server-spotless
name: server-spotless
entry: bash -c 'cd server && ./gradlew :spotlessApply'
language: system
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.21.0
hooks:
- id: check-github-workflows
- id: check-jsonschema
name: "Check UI schema"
language: python
files: ^server/src/main/resources/schemas/.*\.json$
args: ["--schemafile", "https://json-schema.org/draft/2019-09/schema"]
- repo: https://github.com/ambv/black
rev: 22.12.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/flake8.git
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/detailyang/pre-commit-shell
rev: v1.0.6
hooks:
- id: shell-lint
exclude: server/gradlew
args: [--format=json]