-
Notifications
You must be signed in to change notification settings - Fork 219
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (33 loc) · 1.09 KB
/
.pre-commit-config.yaml
File metadata and controls
33 lines (33 loc) · 1.09 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.7 # Should match pyproject.toml
hooks:
- id: ruff
name: ruff common
args: ['--fix']
- id: ruff-format
- repo: https://github.com/golangci/golangci-lint
rev: v2.6.2 # Should match .github/workflows/build-artifacts.yml
hooks:
- id: golangci-lint-full
alias: runner-fix
language_version: 1.25.0 # Should match runner/go.mod
entry: bash -c 'cd runner && golangci-lint run --fix'
stages: [manual]
- id: golangci-lint-full
alias: runner-lint
language_version: 1.25.0 # Should match runner/go.mod
entry: bash -c 'cd runner && golangci-lint run'
stages: [manual]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- repo: local
hooks:
- id: frontend-pre-commit
name: frontend-pre-commit
entry: bash -c "cd frontend && npm install && npm run pre-commit"
language: system
pass_filenames: false
files: ^frontend/