-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-config.yaml
32 lines (28 loc) · 832 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
exclude: version
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
name: (Common) Remove trailing whitespaces
- id: end-of-file-fixer
name: (Common) Remove extra EOF newlines
- id: check-yaml
name: (YAML) Check syntax
#- repo: https://github.com/executablebooks/mdformat
# rev: 0.7.10
# hooks:
# - id: mdformat
# name: (Markdown) Format with mdformat
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
always_run: true
args: ["-i"]
additional_dependencies: ["clang-format==12.0.1"]
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
language_version: python