-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
39 lines (35 loc) · 909 Bytes
/
.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
repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.13.2
hooks:
- id: isort
files: \.py$
args: ["--profile", "black"]
- repo: https://github.com/myint/autoflake
rev: v2.3.1
hooks:
- id: autoflake
files: \.py$
exclude: __init__.py
args:
- --in-place
- --remove-all-unused-imports
- --expand-star-imports
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.7
hooks:
- id: clang-format
files: \.(c|cc|cpp|cxx|h|hpp|cu|cuh|xpu)$
args:
- --style=file
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
files: \.py$
args: ["--line-length=120"]