forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
44 lines (43 loc) · 1.04 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
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
- 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"]
- 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$