Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (58 loc) · 1.88 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
60 lines (58 loc) · 1.88 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
57
58
59
60
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# Everything in copied_from_larsoft_minor_edits is copied from larsoft and should not be modified.
# It is excluded from pre-commit checks to avoid unnecessary noise.
exclude: ^migration/gauss_hit_finder/copied_from_larsoft_minor_edits/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: check-executables-have-shebangs
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.19
hooks:
- id: ruff-format
types_or: [python, pyi]
- id: ruff
types_or: [python, pyi]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v20.1.8
hooks:
- id: clang-format
types_or: [c++, c, cuda]
- repo: local
hooks:
- id: fix-header-guards
name: fix C++ header guards
entry: python3 scripts/fix_header_guards.py
language: system
files: \.(h|hpp)$
- repo: https://github.com/BlankSpruce/gersemi-pre-commit
rev: 0.27.7
hooks:
- id: gersemi
- repo: https://github.com/google/go-jsonnet
rev: v0.22.0
hooks:
- id: jsonnet-format
- id: jsonnet-lint
# The files in test/max-parallelism import files that are generated during the build.
# We therefore exclude them from linting, but still format them.
exclude: ^test/max-parallelism
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.8.4
hooks:
- id: prettier
types_or: [yaml]
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.1
hooks:
- id: markdownlint-cli2
args: [--fix]