-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
31 lines (28 loc) · 922 Bytes
/
.pre-commit-config.yaml
File metadata and controls
31 lines (28 loc) · 922 Bytes
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
# Pre-commit hooks for SGEMM Optimization
# Run `pre-commit install` to set up the git hooks
repos:
# Clang-format for C++/CUDA code formatting
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.1
hooks:
- id: clang-format
types_or: [c++, c, cuda]
args: ['-style=file', '-i']
# Remove trailing whitespace
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
types_or: [c++, c, cuda, markdown, yaml]
- id: end-of-file-fixer
types_or: [c++, c, cuda, markdown, yaml]
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=500']
# Spell checking for documentation
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
types_or: [markdown]
args: ['--skip=*.csv,*.json,README.zh-CN.md']