-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (40 loc) · 1.14 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
45 lines (40 loc) · 1.14 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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: ['--maxkb=200']
- id: check-merge-conflict
args: ['--assume-in-merge']
- 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
args: ['--style=file']
files: '\.(c|cc|h|cxx|hxx|cu)$'
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
args: ['--target-version', 'py39']
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
hooks:
- id: pyupgrade
args: ['--py39-plus']
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.19.3
hooks:
- id: gersemi
args: ['--config', '.gersemi.config', '-i']
files: '\.(cmake|wrap)$|CMakeLists.txt'
- repo: https://github.com/lycheeverse/lychee
rev: lychee-v0.24.2
hooks:
- id: lychee
args: ['--no-progress', '--config', 'utilities/lychee.toml']
files: '\.(md|rst|txt|html|htm|h|hxx|cxx)$'
exclude: '^(documentation/Doxygen|utilities/(gengetopt|lp_solve))/'