forked from ritual-net/infernet-container-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
87 lines (77 loc) · 1.99 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.289
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: local
hooks:
- id: mypy-hello-world
name: mypy hello-world
entry: mypy --strict
files: ^projects/hello-world/container/
language: system
types: [python]
- repo: local
hooks:
- id: mypy-torch-iris
name: mypy torch-iris
entry: mypy --strict
files: ^projects/torch-iris/container/
language: system
types: [python]
- repo: local
hooks:
- id: mypy-onnx-iris
name: mypy onnx-iris
entry: mypy --strict
files: ^projects/onnx-iris/container/
language: system
types: [python]
- repo: local
hooks:
- id: mypy-tgi-llm-container
name: mypy tgi-llm container
entry: mypy --strict
files: ^projects/tgi-llm/container
language: system
types: [python]
- repo: local
hooks:
- id: mypy-tgi-llm-ui
name: mypy tgi-llm ui
entry: mypy --strict
files: ^projects/tgi-llm/ui
language: system
types: [python]
- repo: local
hooks:
- id: mypy-gpt4
name: mypy gpt4
entry: mypy --strict
files: ^projects/gpt4/container
language: system
types: [python]
- repo: local
hooks:
- id: mypy-prompt-to-nft
name: mypy prompt-to-nft
entry: mypy --strict
files: ^projects/prompt-to-nft/container
language: system
types: [python]
# Default pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
# Ensure EOF exists
- id: end-of-file-fixer
# Prevent adding large files
- id: check-added-large-files
args: ["--maxkb=5000"]
# Newline at end of file
- id: trailing-whitespace