-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
94 lines (94 loc) · 2.6 KB
/
.pre-commit-config.yaml
File metadata and controls
94 lines (94 loc) · 2.6 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
repos:
# - repo: https://github.com/psf/black
# rev: 25.1.0
# hooks:
# - id: black
# args: ["--line-length=120"]
- repo: https://github.com/PyCQA/flake8
rev: 7.2.0
hooks:
- id: flake8
args: [
"--select=E,F",
"--ignore=E741,E731,E722,E721,E501,E402,E266,E265,E262,E203,F403,F405",
"--exclude=**/__init__.py",
"--max-line-length=120"
]
- repo: https://github.com/PyCQA/isort
rev: 6.0.1
hooks:
- id: isort
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args: ["--skip=*.po,*.ts,*.css", "--ignore-regex=\\b\\w{2,3}\\b"]
exclude: '^webqa_agent/static/assets/'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: double-quote-string-fixer
- id: check-merge-conflict
- id: fix-encoding-pragma
args: ["--remove"]
- id: mixed-line-ending
args: ["--fix=lf"]
- id: detect-private-key
- id: check-json
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.9
hooks:
- id: mdformat
args: ["--number", "--table-width", "200"]
additional_dependencies:
- mdformat-openmmlab
- mdformat_frontmatter
- linkify-it-py
- repo: https://github.com/myint/docformatter
rev: v1.7.7
hooks:
- id: docformatter
language: python
args: ["--in-place", "--wrap-descriptions", "79"]
- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.30
hooks:
- id: pymarkdown
args: [fix]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.27.0
hooks:
- id: gitleaks
entry: "gitleaks"
args: [
"protect",
"--staged",
"--verbose",
"--redact=50"
]
- repo: https://github.com/PyCQA/pylint/
rev: v3.3.7
hooks:
- id: pylint
name: pylint
entry: pylint
language: python
types: [python]
require_serial: false
args:
[ "--jobs=4",
"--disable=all",
"--enable=E,F",
"--disable=E0401,E0402,E0102,E1101",
"-sn"
]
- repo: https://github.com/tcort/markdown-link-check
rev: v3.12.2
hooks:
- id: markdown-link-check
args: [-q,-c, ./.github/md-link-config.json]
exclude: 'MODES&CLI.*\.md$' # Exclude files with & character