generated from pajenterprise/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (45 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
42
43
44
45
46
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: golint
name: golint
description: golint
entry: 'python3 tasks/git-hooks/golint.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$