forked from weaviate/weaviate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
33 lines (33 loc) · 1.1 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
repos:
- repo: local
hooks:
- id: gofumpt
name: gofumpt
entry: gofumpt -w
language: system
types: [ go ]
- id: error groups
name: error groups
entry: ./tools/linter_error_groups.sh
language: system
types: [ go ]
- id: go routines
name: go routines
entry: ./tools/linter_go_routines.sh
language: system
types: [ go ]
- id: golangci-lint
name: golangci-lint
description: Fast linters runner for Go. Note that only modified files are linted, so linters like 'unused' that need to scan all files won't work as expected.
entry: golangci-lint run --new-from-rev HEAD
types: [go]
language: golang
# Please make sure to update the version in the .github/workflows/linter.yml file when updating this version.
additional_dependencies:
- github.com/golangci/golangci-lint/cmd/[email protected]
require_serial: true
pass_filenames: false
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black