-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.21 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
repos:
- repo: https://github.com/golangci/golangci-lint
rev: v1.57.1
hooks:
- id: golangci-lint
entry: golangci-lint run
exclude: "^(vendor/|.circleci/)"
language: golang
require_serial: true
types: [go]
- repo: [email protected]:launchdarkly/pre-commit-go
rev: v0.11.0
hooks:
- id: compile-go-tests
entry: bin/run-script run-on-dirs "go test ./..."
exclude: "^vendor/|^.circleci/image/tools"
name: run-go-tests
- id: discarded-stacktrace
exclude: '(^vendor/|.*gen\.go)'
- id: go-mod-tidy
- id: go-mod-verify
- id: go-mod-vendor-no-change
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
exclude: "^vendor"
- repo: local
hooks:
- id: ui-tests
name: Run dev-server UI tests
entry: bash -c 'cd internal/dev_server/ui && npm test'
language: system
files: \.(jsx|tsx)$
pass_filenames: false
- id: ui-build
name: Build dev-server UI
entry: bash -c 'cd internal/dev_server/ui && npm run build'
language: system
files: \.(jsx|tsx)$
pass_filenames: false