-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy path.pre-commit-config.yaml
80 lines (80 loc) · 2.25 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
rev: v1.1.13
hooks:
- id: remove-crlf
- repo: https://github.com/google/yapf
rev: v0.43.0
hooks:
- id: yapf
exclude: ".*/auto_deploy/.*"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-added-large-files
exclude: |
(?x)^(.*cubin.cpp)$
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
exclude: ".*/gitlab/.*.yml"
- id: trailing-whitespace
- id: check-toml
- id: mixed-line-ending
args: [--fix=lf]
files: ".*/auto_deploy/.*"
- id: debug-statements
files: ".*/auto_deploy/.*"
- id: check-json
files: ".*/auto_deploy/.*"
exclude: >
(?x)^(
.*\.vscode/.*\.json | # vscode files can take comments
.*\.devcontainer/.*\.json # devcontainer json files can take comments
)$
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
additional_dependencies:
- tomli
args: ['--config', 'pyproject.toml']
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.0
hooks:
- id: clang-format
types_or: [c++, c, cuda]
exclude: |
(?x)^(.*cubin.cpp$ | .*fmha_cubin.h)$
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.10
hooks:
- id: cmake-format
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
files: ".*/auto_deploy/.*"
- id: ruff-format
files: ".*/auto_deploy/.*"
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
additional_dependencies:
- mdformat_frontmatter
files: ".*/auto_deploy/.*"