-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (55 loc) · 1.41 KB
/
.pre-commit-config.yaml
File metadata and controls
56 lines (55 loc) · 1.41 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
46
47
48
49
50
51
52
53
54
55
56
fail_fast: true
repos:
# General purpose hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: [--maxkb=8192]
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: ^contrib/catch/
- id: trailing-whitespace
exclude: ^contrib/catch/
- repo: https://github.com/gitleaks/gitleaks
rev: v8.24.2
hooks:
- id: gitleaks
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args: [--config=.codespellrc]
exclude: ^contrib/catch/
# Python formatting and linting tools
- repo: https://github.com/psf/black
rev: 25.9.0
hooks:
- id: black
language_version: python3
exclude: contrib/utilities/prm_tools.py
- repo: https://github.com/pycqa/isort
rev: 6.0.1
hooks:
- id: isort
args: ["--profile", "black"]
exclude: contrib/utilities/prm_tools.py
# TODO: Enable flake8 after addressing existing linting issues
# - repo: https://github.com/pycqa/flake8
# rev: 7.3.0
# hooks:
# - id: flake8
# args: [--max-line-length=80]
# exclude: contrib/utilities/prm_tools.py
# CMake formatting
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.25.0
hooks:
- id: gersemi
# c++ formatting
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.8
hooks:
- id: clang-format
types_or: [c++, c, cuda]
exclude: ^contrib/catch/