forked from dask/dask-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.63 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
exclude: versioneer.py
- repo: https://github.com/rapidsai/frigate/
rev: v0.4.0 # pre-commit autoupdate - to keep the version up to date
hooks:
- id: frigate
- repo: local
hooks:
- id: check-crd-updates
name: check-crd-updates
entry: ci/pre-commit-crd.py v0.14.0
language: script
types: [yaml]
pass_filenames: true
- id: regenerate-go-code
name: regenerate-go-code
entry: dask_kubernetes/operator/go_client/hack/regenerate-code.sh
language: script
files: |
(?x)^(
go\.mod
|go\.sum
|dask_kubernetes/operator/go_client/pkg/apis/.*\.go
)$
exclude: ^dask_kubernetes/operator/go_client/pkg/apis/.*zz_generated.*\.go$
pass_filenames: false
- id: lint-go-code
name: lint-go-code
entry: dask_kubernetes/operator/go_client/hack/lint.sh
language: script
files: ^dask_kubernetes/operator/go_client/.*\.go$
pass_filenames: false
- id: build-go-code
name: build-go-code
entry: golang:1.19.10-bookworm bash -c 'GOCACHE=/src/.cache go build ./...'
language: docker_image
files: |
(?x)^(
go\.mod
|go\.sum
|dask_kubernetes/operator/go_client/.*\.go
)$
pass_filenames: false