-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
43 lines (43 loc) · 1.2 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
# TODO: add markdownlint
repos:
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 38.119.0
hooks:
- id: renovate-config-validator
language_version: "22.8.0"
# TODO: sandbox Deno
- repo: https://github.com/nozaq/pre-commit-deno
rev: 0.1.0
hooks:
- id: deno-fmt
- id: deno-lint
- repo: local
hooks:
- id: check
name: run deno check
entry: bash -c 'cd cdk8s/ && deno check src/app.ts'
language: system
types: [ts]
pass_filenames: false
- repo: local
hooks:
- id: run
name: build k8s manifest
entry: bash -c 'cd cdk8s/ && deno task build'
language: system
pass_filenames: false
- repo: local
hooks:
- id: run
name: kube-linter
entry: bash -c 'kube-linter lint cdk8s/dist/'
language: system
pass_filenames: false
# note: you need to run `pre-commit install --hook-type commit-msg`
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.18.0
hooks:
- id: commitlint
language_version: "22.8.0"
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]