-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
98 lines (87 loc) · 2.67 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
98 lines (87 loc) · 2.67 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
95
96
97
98
ci:
autofix_prs: true
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
- id: check-yaml
- id: check-case-conflict
- id: debug-statements
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.6
hooks:
- id: insert-license
files: |
(?x)^(
auto_round/.*(py|yaml|yml|sh)|
auto_round_extension/.*(py|yaml|yml|sh)
)$
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
args:
[
--license-filepath=.github/license_template.txt,
--use-current-year,
--detect-license-in-X-top-lines=40,
--skip-license-insertion-comment=Copyright,
]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.5.1
hooks:
- id: black
files: (.*\.py)$
exclude: |
(?x)^(
.azure-pipelines/scripts/cuda_unit_test/.+|
auto_round/export/export_to_gguf/conversion/.+
)$
- repo: https://github.com/asottile/blacken-docs
rev: 1.20.0
hooks:
- id: blacken-docs
args: [--line-length=120, --skip-errors]
additional_dependencies:
- black==26.5.1
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args: [-w]
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
additional_dependencies:
- tomli
- repo: https://github.com/crate-ci/typos
rev: v1.48.0
hooks:
- id: typos
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
- repo: https://github.com/pycqa/isort
rev: 8.0.1
hooks:
- id: isort
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --no-cache]
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
- repo: https://github.com/tcort/markdown-link-check
rev: v3.14.2
hooks:
- id: markdown-link-check
args: [-q, -c .azure-pipelines/scripts/codeScan/markdown-link-check/markdown-link-check.json]
- repo: https://github.com/PyCQA/bandit
rev: "1.9.4"
hooks:
- id: bandit
files: |
(?x)^(
auto_round/.*\.py|
auto_round_extension/.*\.py
)$
exclude: ^auto_round/export/export_to_gguf/conversion/.*\.py$
args: [-r, -lll, -iii, auto_round/, auto_round_extension/]