-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
43 lines (38 loc) · 1.42 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
repos:
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
language_version: python3.7
additional_dependencies: ['click==8.0.4']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
hooks:
- id: mypy
exclude: 'src/test/|src/lumigo_tracer/examples/|src/lumigo_tracer/test_module/|src/lumigo_tracer/libs/'
entry: venv/bin/mypy
args: ['--show-error-codes', '--check-untyped-defs', '--warn-redundant-casts', '--strict-equality', '--warn-unused-ignores', '--warn-return-any', '--disallow-untyped-defs', '--disallow-incomplete-defs', '--disallow-any-generics', '--ignore-missing-imports']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: flake8
args: ["--ignore","E501,W503","--exclude","src/lumigo_tracer/libs/*"]
additional_dependencies: ['importlib-metadata==4.13.0']
- repo: https://github.com/PyCQA/bandit
rev: '1.7.0'
hooks:
- id: bandit
exclude: ^src/test/
args: ["-lll"]
additional_dependencies: ['importlib-metadata==4.13.0']
- repo: https://github.com/Yelp/detect-secrets
rev: v1.2.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
args: ["--profile", "black"]
exclude: ^src/lumigo_tracer/libs/