Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
71 lines (63 loc) · 2.26 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
71 lines (63 loc) · 2.26 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
61
62
63
64
65
66
67
68
69
70
71
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0 , 9 Aug 2025
hooks:
- id: check-added-large-files
args: ["--maxkb=100"]
exclude: "example/larceler/dune10kt-addopdet.patch"
- id: check-case-conflict
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: end-of-file-fixer
exclude: '\.(diff|patch)$'
- id: trailing-whitespace
exclude: '\.(diff|patch)$'
# Type-specific checks
- id: check-json
- id: check-yaml
# Type-specific character fixes and formatting
- repo: https://github.com/sethrj/fix-non-ascii
rev: v1.0.0 # 18 May 2026 (immutable)
hooks:
- id: fix-non-ascii
files: '\.(cc|hh|cu|cmake)$|CMakeLists\.txt$'
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: dd18dad857d6133e90bbe478f4f2f22ec0030269 # v22.1.5, 18 May 2026
hooks:
- id: clang-format
types_or: [file]
files: \.(cc|hh|h|cpp|hpp|cu|cuh)(\.in)?$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.13 # 14 May 2026 (immutable)
hooks:
- id: ruff-format
- repo: local
hooks:
- id: prettier
name: prettier
entry: prettier
args: ["--write"]
language: node
types_or: [yaml, json, css]
additional_dependencies:
- prettier@3.9.6
# Spell checking
- repo: https://github.com/codespell-project/codespell
rev: 57b21406f092110c18776e39b0bda50d37c945c8 # v2.4.3, 15 Jul 2026
hooks:
- id: codespell
exclude: '(/regression/|\.(diff|patch|jsonl)$)'
args: ["-w"]
# TODO: licensing
# see https://github.com/celeritas-project/celeritas/issues/1763
ci:
autofix_commit_msg: |
Apply fixes from pre-commit hooks: see detailed commit message ↴
This commit means that you must (please!) install pre-commit
on your development machine and run `pre-commit install --install-hooks`.
For more information, see
https://celeritas-project.github.io/celeritas/user/development/style.html#formatting
Autogenerated: https://pre-commit.ci
autoupdate_schedule: quarterly
autoupdate_commit_msg: "Update pre-commit version"
# vim: set nowrap tw=100: