-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.pre-commit-config.yaml
55 lines (55 loc) · 1.45 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
---
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: "https://github.com/adrienverge/yamllint"
rev: v1.35.1
hooks:
- id: yamllint
args: ['--strict']
- repo: "https://github.com/doublify/pre-commit-rust"
rev: v1.0
hooks:
- id: cargo-check
args:
- --target-dir
- /tmp/cargo
- id: clippy
args:
- --target-dir
- /tmp/cargo
- --
- -Dwarnings
- repo: "https://github.com/futuretech6/pre-commit-rust-nightly"
rev: v1.1
hooks:
- id: fmt
name: rust-fmt
args: ['--', '--unstable-features']
- repo: "https://github.com/pre-commit/mirrors-mypy"
rev: v1.4.1
hooks:
- id: mypy
- repo: "https://github.com/astral-sh/ruff-pre-commit"
rev: v0.4.2
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: local
hooks:
- id: check-k8s
name: Check Generated K8s YAML
language: system
entry: bash -c 'make kustomize && git diff --quiet'
pass_filenames: false
files: "sk-api/.*|k8s/.*|Cargo.toml"
- id: check-validation-readme
name: Check Validation README
language: system
entry: bash -c 'make validation_rules && git diff --quiet'
pass_filenames: false
files: "sk-cli/src/validation/.*"