-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
70 lines (61 loc) · 1.91 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
ci:
skip: [pixi-install-default, pixi-install-cpu, pixi-install-gpu]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
args: [--unsafe]
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
hooks:
- id: ruff
types_or: [ python, pyi ]
args: [ --fix ]
- id: ruff-format
types_or: [ python, pyi ]
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
rev: v2.2.0
hooks:
- id: shell-fmt-go
args:
- --write
- --simplify
- --indent
- "2"
- repo: local
hooks:
- id: pixi-install-default
name: pixi install (solving default)
entry: bash -c 'cd $(git rev-parse --show-toplevel) && pixi install --locked -e default'
language: system
files: ^pyproject\.toml$
types: [text]
- id: pixi-install-cpu
name: pixi install (solving cpu)
entry: bash -c 'cd $(git rev-parse --show-toplevel) && pixi install --locked -e cpu'
language: system
files: ^pyproject\.toml$
types: [text]
- id: pixi-install-gpu
name: pixi install (solving gpu)
entry: bash -c 'cd $(git rev-parse --show-toplevel) && pixi install --locked -e gpu'
language: system
files: ^pyproject\.toml$
types: [text]
- repo: local
hooks:
- id: gcp-sh-test
name: gcp.sh tests
entry: bash -c 'cd $(git rev-parse --show-toplevel) && cd scripts && ./test-gcp.sh'
language: system
files: .*gcp.*\.sh$
types: [executable]
- id: pytest-sh-test
name: pytest.sh tests
entry: bash -c 'cd $(git rev-parse --show-toplevel) && cd scripts && ./test-pytest.sh'
language: system
files: .*pytest.*\.sh$
types: [executable]