forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (53 loc) · 1.52 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
default_language_version:
python: python3
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3 # should match major Python version
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==20.1.4
- flake8-unused-arguments==0.0.6
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
- repo: https://github.com/timothycrosley/isort/
rev: 5.2.2
hooks:
- id: isort
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.1
hooks:
- id: shellcheck
args: ["--severity=info", "-e", "SC2059", "-e", "SC2028"]
additional_dependencies: [] # Can be removed after this fix gets merged: https://github.com/jumanjihouse/pre-commit-hooks/pull/80
- repo: local
hooks:
- id: revive
name: revive
description: revive
entry: 'python3 tasks/git-hooks/revive.py'
language: system
files: \.go$
- id: govet
name: govet
description: go vet
entry: 'python3 tasks/git-hooks/govet.py'
language: system
require_serial: true
files: \.go$
- id: gofmt
name: gofmt
description: go fmt
entry: 'python3 tasks/git-hooks/gofmt.py'
language: system
files: \.go$
- id: clang-format
name: clang-format
description: clang-format
entry: 'python3 tasks/git-hooks/clang-format.py'
language: system
require_serial: true
files: '^pkg/(ebpf|network|security)/.*\.(c|h)$'
exclude: '^pkg/ebpf/(c/bpf_endian|c/bpf_helpers|compiler/clang-stdarg).h$'