Skip to content

Commit 07d6fbc

Browse files
author
Shrishti Banshiar
committed
ADDED ALL THE REMOVED RESTORED LINTERS
1 parent 7eff409 commit 07d6fbc

File tree

1 file changed

+100
-1
lines changed

1 file changed

+100
-1
lines changed

.pre-commit-config.yaml

+100-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,105 @@
11
repos:
2+
- repo: https://github.com/econchick/interrogate
3+
rev: 1.7.0
4+
hooks:
5+
- id: interrogate
6+
verbose: True
7+
exclude: ^(locales|presentation|fuzz/generated|test|cve_bin_tool/checkers|build)
8+
args: ["-vv", "-i", "-I", "-M", "-C", "-n", "-p", "-f", "60.0"]
9+
10+
- repo: https://github.com/pycqa/isort
11+
rev: 6.0.1
12+
hooks:
13+
- id: isort
14+
stages: [pre-commit, pre-merge-commit]
15+
exclude: ^fuzz/generated/
16+
17+
- repo: https://github.com/psf/black-pre-commit-mirror
18+
rev: 24.10.0
19+
hooks:
20+
- id: black
21+
exclude: ^fuzz/generated/
22+
23+
- repo: https://github.com/asottile/pyupgrade
24+
rev: v3.19.1
25+
hooks:
26+
- id: pyupgrade
27+
exclude: ^fuzz/generated/
28+
args: ["--py38-plus"]
29+
30+
- repo: https://github.com/pycqa/flake8
31+
rev: 7.1.2
32+
hooks:
33+
- id: flake8
34+
exclude: ^fuzz/generated/|bandit\.conf$
35+
36+
- repo: https://github.com/PyCQA/bandit
37+
rev: 1.8.3
38+
hooks:
39+
- id: bandit
40+
exclude: ^fuzz/generated/
41+
args: ["-c", "bandit.conf"]
42+
43+
- repo: https://github.com/jorisroovers/gitlint
44+
rev: v0.19.1
45+
hooks:
46+
- id: gitlint
47+
48+
- repo: https://github.com/pre-commit/mirrors-mypy
49+
rev: v1.15.0
50+
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+
)$
82+
83+
- repo: https://github.com/codespell-project/codespell
84+
rev: v2.4.1
85+
hooks:
86+
- id: codespell
87+
name: codespell
88+
description: Checks for common misspellings in text files.
89+
args:
90+
[
91+
"-I",
92+
".github/actions/spelling/allow.txt",
93+
".github/actions/spelling/only.txt",
94+
".github/actions/spelling/expect.txt",
95+
".github/actions/spelling/excludes.txt",
96+
]
97+
language: python
98+
types: [text]
99+
100+
# ✅ Add Markdown Linter **without removing other linters**
2101
- repo: https://github.com/igorshubovych/markdownlint-cli
3-
rev: v0.44.0 # Use the latest stable version
102+
rev: v0.44.0
4103
hooks:
5104
- id: markdownlint
6105
args: ["--disable", "MD013", "MD033"] # Disable long lines & inline HTML rules

0 commit comments

Comments
 (0)