forked from Yelp/elastalert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.22 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- id: name-tests-test
- repo: https://github.com/timothycrosley/isort
rev: 4.3.21
hooks:
- id: isort
args: ["-m 3", "--trailing-comma", "-w 88"]
exclude: elastalert/ruletypes/__init__.py|elastalert/loaders/__init__.py|elastalert/alerter/__init__.py
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
language_version: python3.6
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
args: ['--max-line-length=120']
language_version: python3.6
- repo: https://github.com/PyCQA/bandit
rev: 1.6.2
hooks:
- id: bandit
exclude: tests/.*|tests_old/.*
args: ['-b', '.bandit_baseline.json', '-c', '.bandit.yaml']
- repo: https://github.com/Yelp/detect-secrets
rev: v0.13.1
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: .*tests/.*|tests_old/.*|.*yelp/testing/.*|\.pre-commit-config\.yaml
exclude: example_maas/.*