|
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
|
6 | 6 | verbose: True
|
7 | 7 | exclude: ^(locales|presentation|fuzz/generated|test|cve_bin_tool/checkers|build)
|
8 | 8 | args: ["-vv", "-i", "-I", "-M", "-C", "-n", "-p", "-f", "60.0"]
|
| 9 | + # args for cut and paste: interrogate -vv -i -I -M -C -n -p -f 60.0 |
9 | 10 |
|
10 |
| - - repo: https://github.com/pycqa/isort |
| 11 | +- repo: https://github.com/pycqa/isort |
11 | 12 | rev: 6.0.1
|
12 | 13 | hooks:
|
13 |
| - - id: isort |
14 |
| - stages: [pre-commit, pre-merge-commit] |
15 |
| - exclude: ^fuzz/generated/ |
| 14 | + - id: isort |
| 15 | + stages: [pre-commit, pre-merge-commit] |
| 16 | + exclude: ^fuzz/generated/ |
16 | 17 |
|
17 |
| - - repo: https://github.com/psf/black-pre-commit-mirror |
18 |
| - rev: 25.1.0 # Kept latest revision |
19 |
| - hooks: |
20 |
| - - id: black |
21 |
| - exclude: ^fuzz/generated/ |
22 |
| - |
23 |
| - - repo: https://github.com/asottile/pyupgrade |
| 18 | +- repo: https://github.com/asottile/pyupgrade |
24 | 19 | rev: v3.19.1
|
25 | 20 | hooks:
|
26 |
| - - id: pyupgrade |
27 |
| - exclude: ^fuzz/generated/ |
28 |
| - args: ["--py38-plus"] |
| 21 | + - id: pyupgrade |
| 22 | + exclude: ^fuzz/generated/ |
| 23 | + args: ["--py38-plus"] |
29 | 24 |
|
30 |
| - - repo: https://github.com/pycqa/flake8 |
| 25 | +- repo: https://github.com/pycqa/flake8 |
31 | 26 | rev: 7.1.2
|
32 | 27 | hooks:
|
33 |
| - - id: flake8 |
34 |
| - exclude: ^fuzz/generated/|bandit\.conf$ |
| 28 | + - id: flake8 |
| 29 | + exclude: ^fuzz/generated/|bandit\.conf$ |
35 | 30 |
|
36 |
| - - repo: https://github.com/PyCQA/bandit |
| 31 | +- repo: https://github.com/PyCQA/bandit |
37 | 32 | rev: 1.8.3
|
38 | 33 | hooks:
|
39 |
| - - id: bandit |
40 |
| - exclude: ^fuzz/generated/ |
41 |
| - args: ["-c", "bandit.conf"] |
| 34 | + - id: bandit |
| 35 | + exclude: ^fuzz/generated/ |
| 36 | + args: ["-c", "bandit.conf"] |
42 | 37 |
|
43 |
| - - repo: https://github.com/jorisroovers/gitlint |
| 38 | +- repo: https://github.com/jorisroovers/gitlint |
44 | 39 | rev: v0.19.1
|
45 | 40 | hooks:
|
46 |
| - - id: gitlint |
| 41 | + - id: gitlint |
47 | 42 |
|
48 |
| - - repo: https://github.com/pre-commit/mirrors-mypy |
| 43 | +- repo: https://github.com/pre-commit/mirrors-mypy |
49 | 44 | rev: v1.15.0
|
50 | 45 | hooks:
|
51 |
| - - id: mypy |
52 |
| - additional_dependencies: |
53 |
| - - types-beautifulsoup4 |
54 |
| - - types-jsonschema |
55 |
| - - types-PyYAML |
56 |
| - - types-requests |
57 |
| - - types-setuptools |
58 |
| - - types-toml |
59 |
| - files: | |
60 |
| - (?x)^( |
61 |
| - cve_bin_tool/parsers/.*| |
62 |
| - cve_bin_tool/__init__.py| |
63 |
| - cve_bin_tool/async_utils.py| |
64 |
| - cve_bin_tool/file.py| |
65 |
| - cve_bin_tool/linkify.py| |
66 |
| - cve_bin_tool/log.py| |
67 |
| - cve_bin_tool/strings.py| |
68 |
| - cve_bin_tool/theme.py| |
69 |
| - cve_bin_tool/util.py| |
70 |
| - cve_bin_tool/validator.py| |
71 |
| - cve_bin_tool/version.py| |
72 |
| - doc/.*| |
73 |
| - test/test_data/.*| |
74 |
| - test/__init__.py| |
75 |
| - test/test_file.py| |
76 |
| - test/test_requirements.py| |
77 |
| - test/test_strings.py| |
78 |
| - test/test_triage.py| |
79 |
| - test/test_version.py| |
80 |
| - test/utils.py| |
81 |
| - )$ |
| 46 | + - id: mypy |
| 47 | + additional_dependencies: |
| 48 | + - types-beautifulsoup4 |
| 49 | + - types-jsonschema |
| 50 | + - types-PyYAML |
| 51 | + - types-requests |
| 52 | + - types-setuptools |
| 53 | + - types-toml |
| 54 | + files: | |
| 55 | + (?x)^( |
| 56 | + cve_bin_tool/parsers/.*| |
| 57 | + cve_bin_tool/__init__.py| |
| 58 | + cve_bin_tool/async_utils.py| |
| 59 | + cve_bin_tool/file.py| |
| 60 | + cve_bin_tool/linkify.py| |
| 61 | + cve_bin_tool/log.py| |
| 62 | + cve_bin_tool/strings.py| |
| 63 | + cve_bin_tool/theme.py| |
| 64 | + cve_bin_tool/util.py| |
| 65 | + cve_bin_tool/validator.py| |
| 66 | + cve_bin_tool/version.py| |
| 67 | + doc/.*| |
| 68 | + test/test_data/.*| |
| 69 | + test/__init__.py| |
| 70 | + test/test_file.py|s |
| 71 | + test/test_requirements.py| |
| 72 | + test/test_strings.py| |
| 73 | + test/test_triage.py| |
| 74 | + test/test_version.py| |
| 75 | + test/utils.py| |
| 76 | + )$ |
82 | 77 |
|
83 |
| - - repo: https://github.com/igorshubovych/markdownlint-cli |
84 |
| - rev: v0.44.0 |
85 |
| - hooks: |
86 |
| - - id: markdownlint |
87 |
| - name: Markdown Linter |
88 |
| - files: \.md$ |
| 78 | +- repo: https://github.com/igorshubovych/markdownlint-cli |
| 79 | + rev: v0.44.0 # Use the latest stable version |
| 80 | + hooks: |
| 81 | + - id: markdownlint |
| 82 | + args: ["--disable", "MD013", "MD033"] # Disable long lines & inline HTML rules |
89 | 83 |
|
90 |
| - - repo: https://github.com/codespell-project/codespell |
91 |
| - rev: v2.4.1 |
92 |
| - hooks: |
93 |
| - - id: codespell |
94 |
| - name: codespell |
95 |
| - description: Checks for common misspellings in text files. |
96 |
| - args: |
97 |
| - [ |
98 |
| - "-I", |
99 |
| - ".github/actions/spelling/allow.txt", |
100 |
| - ".github/actions/spelling/only.txt", |
101 |
| - ".github/actions/spelling/expect.txt", |
102 |
| - ".github/actions/spelling/excludes.txt", |
103 |
| - ] |
104 |
| - language: python |
105 |
| - types: [text] |
0 commit comments