forked from intel/cve-bin-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
81 lines (73 loc) · 2.01 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
exclude: ^fuzz/generated/
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
hooks:
- id: black
exclude: ^fuzz/generated/
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
exclude: ^fuzz/generated/
args: ["--py38-plus"]
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
exclude: ^fuzz/generated/
- repo: https://github.com/PyCQA/bandit
rev: 1.7.6
hooks:
- id: bandit
exclude: ^fuzz/generated/
args: ["-c", "bandit.conf"]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies:
- types-beautifulsoup4
- types-jsonschema
- types-PyYAML
- types-requests
- types-setuptools
- types-toml
files: |
(?x)^(
cve_bin_tool/parsers/.*|
cve_bin_tool/__init__.py|
cve_bin_tool/async_utils.py|
cve_bin_tool/file.py|
cve_bin_tool/linkify.py|
cve_bin_tool/log.py|
cve_bin_tool/strings.py|
cve_bin_tool/theme.py|
cve_bin_tool/util.py|
cve_bin_tool/validator.py|
cve_bin_tool/version.py|
doc/.*|
test/test_data/.*|
test/__init__.py|
test/test_file.py|s
test/test_requirements.py|
test/test_strings.py|
test/test_triage.py|
test/test_version.py|
test/utils.py|
)$
- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
- id: interrogate
verbose: True
exclude: ^(locales|presentation|fuzz|test|cve_bin_tool/checkers|build)
args: ["-vv", "-i", "-I", "-M", "-C", "-n", "-p", "-f", "60.0"]