|
1 | 1 | repos:
|
2 |
| -- repo: https://github.com/econchick/interrogate |
| 2 | + - repo: https://github.com/econchick/interrogate |
3 | 3 | rev: 1.7.0
|
4 | 4 | hooks:
|
5 | 5 | - id: interrogate
|
|
8 | 8 | args: ["-vv", "-i", "-I", "-M", "-C", "-n", "-p", "-f", "60.0"]
|
9 | 9 | # args for cut and paste: interrogate -vv -i -I -M -C -n -p -f 60.0
|
10 | 10 |
|
11 |
| -- repo: https://github.com/pycqa/isort |
| 11 | + - repo: https://github.com/pycqa/isort |
12 | 12 | rev: 5.13.2
|
13 | 13 | hooks:
|
14 |
| - - id: isort |
15 |
| - stages: [pre-commit, pre-merge-commit] |
16 |
| - exclude: ^fuzz/generated/ |
| 14 | + - id: isort |
| 15 | + stages: [pre-commit, pre-merge-commit] |
| 16 | + exclude: ^fuzz/generated/ |
17 | 17 |
|
18 |
| -- repo: https://github.com/psf/black-pre-commit-mirror |
| 18 | + - repo: https://github.com/psf/black-pre-commit-mirror |
19 | 19 | rev: 24.10.0
|
20 | 20 | hooks:
|
21 |
| - - id: black |
22 |
| - exclude: ^fuzz/generated/ |
| 21 | + - id: black |
| 22 | + exclude: ^fuzz/generated/ |
23 | 23 |
|
24 |
| -- repo: https://github.com/asottile/pyupgrade |
| 24 | + - repo: https://github.com/asottile/pyupgrade |
25 | 25 | rev: v3.19.1
|
26 | 26 | hooks:
|
27 |
| - - id: pyupgrade |
28 |
| - exclude: ^fuzz/generated/ |
29 |
| - args: ["--py38-plus"] |
| 27 | + - id: pyupgrade |
| 28 | + exclude: ^fuzz/generated/ |
| 29 | + args: ["--py38-plus"] |
30 | 30 |
|
31 |
| -- repo: https://github.com/pycqa/flake8 |
| 31 | + - repo: https://github.com/pycqa/flake8 |
32 | 32 | rev: 7.1.1
|
33 | 33 | hooks:
|
34 |
| - - id: flake8 |
35 |
| - exclude: ^fuzz/generated/|bandit\.conf$ |
| 34 | + - id: flake8 |
| 35 | + exclude: ^fuzz/generated/|bandit\.conf$ |
36 | 36 |
|
37 |
| -- repo: https://github.com/PyCQA/bandit |
| 37 | + - repo: https://github.com/PyCQA/bandit |
38 | 38 | rev: 1.8.0
|
39 | 39 | hooks:
|
40 |
| - - id: bandit |
41 |
| - exclude: ^fuzz/generated/ |
42 |
| - args: ["-c", "bandit.conf"] |
| 40 | + - id: bandit |
| 41 | + exclude: ^fuzz/generated/ |
| 42 | + args: ["-c", "bandit.conf"] |
43 | 43 |
|
44 |
| -- repo: https://github.com/jorisroovers/gitlint |
| 44 | + - repo: https://github.com/jorisroovers/gitlint |
45 | 45 | rev: v0.19.1
|
46 | 46 | hooks:
|
47 |
| - - id: gitlint |
| 47 | + - id: gitlint |
48 | 48 |
|
49 |
| -- repo: https://github.com/pre-commit/mirrors-mypy |
| 49 | + - repo: https://github.com/pre-commit/mirrors-mypy |
50 | 50 | rev: v1.14.1
|
51 | 51 | hooks:
|
52 |
| - - id: mypy |
53 |
| - additional_dependencies: |
54 |
| - - types-beautifulsoup4 |
55 |
| - - types-jsonschema |
56 |
| - - types-PyYAML |
57 |
| - - types-requests |
58 |
| - - types-setuptools |
59 |
| - - types-toml |
60 |
| - files: | |
61 |
| - (?x)^( |
62 |
| - cve_bin_tool/parsers/.*| |
63 |
| - cve_bin_tool/__init__.py| |
64 |
| - cve_bin_tool/async_utils.py| |
65 |
| - cve_bin_tool/file.py| |
66 |
| - cve_bin_tool/linkify.py| |
67 |
| - cve_bin_tool/log.py| |
68 |
| - cve_bin_tool/strings.py| |
69 |
| - cve_bin_tool/theme.py| |
70 |
| - cve_bin_tool/util.py| |
71 |
| - cve_bin_tool/validator.py| |
72 |
| - cve_bin_tool/version.py| |
73 |
| - doc/.*| |
74 |
| - test/test_data/.*| |
75 |
| - test/__init__.py| |
76 |
| - test/test_file.py|s |
77 |
| - test/test_requirements.py| |
78 |
| - test/test_strings.py| |
79 |
| - test/test_triage.py| |
80 |
| - test/test_version.py| |
81 |
| - test/utils.py| |
82 |
| - )$ |
83 |
| -
|
| 52 | + - id: mypy |
| 53 | + additional_dependencies: |
| 54 | + - types-beautifulsoup4 |
| 55 | + - types-jsonschema |
| 56 | + - types-PyYAML |
| 57 | + - types-requests |
| 58 | + - types-setuptools |
| 59 | + - types-toml |
| 60 | + files: | |
| 61 | + (?x)^( |
| 62 | + cve_bin_tool/parsers/.*| |
| 63 | + cve_bin_tool/__init__.py| |
| 64 | + cve_bin_tool/async_utils.py| |
| 65 | + cve_bin_tool/file.py| |
| 66 | + cve_bin_tool/linkify.py| |
| 67 | + cve_bin_tool/log.py| |
| 68 | + cve_bin_tool/strings.py| |
| 69 | + cve_bin_tool/theme.py| |
| 70 | + cve_bin_tool/util.py| |
| 71 | + cve_bin_tool/validator.py| |
| 72 | + cve_bin_tool/version.py| |
| 73 | + doc/.*| |
| 74 | + test/test_data/.*| |
| 75 | + test/__init__.py| |
| 76 | + test/test_file.py|s |
| 77 | + test/test_requirements.py| |
| 78 | + test/test_strings.py| |
| 79 | + test/test_triage.py| |
| 80 | + test/test_version.py| |
| 81 | + test/utils.py| |
| 82 | + )$ |
84 | 83 |
|
| 84 | + - repo: https://github.com/codespell-project/codespell |
| 85 | + rev: v1.16.0 |
| 86 | + hooks: |
| 87 | + - id: codespell |
| 88 | + name: codespell |
| 89 | + description: Checks for common misspellings in text files. |
| 90 | + args: |
| 91 | + [ |
| 92 | + "-I", |
| 93 | + ".github/actions/spelling/allow.txt", |
| 94 | + ".github/actions/spelling/only.txt", |
| 95 | + ".github/actions/spelling/expect.txt", |
| 96 | + ".github/actions/spelling/excludes.txt", |
| 97 | + ] |
| 98 | + language: python |
| 99 | + types: [text] |
0 commit comments