Skip to content

Commit f26103e

Browse files
author
Shrishti Banshiar
committed
Removed black update and added markdownlint
1 parent 922fbaa commit f26103e

File tree

1 file changed

+56
-78
lines changed

1 file changed

+56
-78
lines changed

.pre-commit-config.yaml

+56-78
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,83 @@
11
repos:
2-
- repo: https://github.com/econchick/interrogate
2+
- repo: https://github.com/econchick/interrogate
33
rev: 1.7.0
44
hooks:
55
- id: interrogate
66
verbose: True
77
exclude: ^(locales|presentation|fuzz/generated|test|cve_bin_tool/checkers|build)
88
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
910

10-
- repo: https://github.com/pycqa/isort
11+
- repo: https://github.com/pycqa/isort
1112
rev: 6.0.1
1213
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/
1617

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
2419
rev: v3.19.1
2520
hooks:
26-
- id: pyupgrade
27-
exclude: ^fuzz/generated/
28-
args: ["--py38-plus"]
21+
- id: pyupgrade
22+
exclude: ^fuzz/generated/
23+
args: ["--py38-plus"]
2924

30-
- repo: https://github.com/pycqa/flake8
25+
- repo: https://github.com/pycqa/flake8
3126
rev: 7.1.2
3227
hooks:
33-
- id: flake8
34-
exclude: ^fuzz/generated/|bandit\.conf$
28+
- id: flake8
29+
exclude: ^fuzz/generated/|bandit\.conf$
3530

36-
- repo: https://github.com/PyCQA/bandit
31+
- repo: https://github.com/PyCQA/bandit
3732
rev: 1.8.3
3833
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"]
4237

43-
- repo: https://github.com/jorisroovers/gitlint
38+
- repo: https://github.com/jorisroovers/gitlint
4439
rev: v0.19.1
4540
hooks:
46-
- id: gitlint
41+
- id: gitlint
4742

48-
- repo: https://github.com/pre-commit/mirrors-mypy
43+
- repo: https://github.com/pre-commit/mirrors-mypy
4944
rev: v1.15.0
5045
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+
)$
8277
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
8983

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

Comments
 (0)