-
Notifications
You must be signed in to change notification settings - Fork 451
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (43 loc) · 1.11 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
43 lines (43 loc) · 1.11 KB
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.0
hooks:
- id: ruff-format
args: ["."]
pass_filenames: false
- id: ruff
args: ["--fix", "."]
pass_filenames: false
- repo: local
hooks:
- id: ty
name: ty
entry: .venv/bin/python -m ty check
language: system
pass_filenames: false
- id: frontend-lint
name: frontend lint
entry: make frontend-lint
language: system
pass_filenames: false
files: ^frontend/
- id: frontend-typecheck
name: frontend typecheck
entry: make frontend-typecheck
language: system
pass_filenames: false
files: ^frontend/
- id: frontend-test
name: frontend test
entry: make frontend-test
language: system
pass_filenames: false
files: ^frontend/
stages: [pre-push]
- id: local-ci
name: local CI parity check
entry: make ci
language: system
always_run: true
pass_filenames: false
stages: [manual]