forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (45 loc) · 1.68 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (45 loc) · 1.68 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
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']
- 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 formatting
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 182152eb8c5ce1cf5299b956b04392c86bd8a126 # v20.1.8, 11 Jul 2025
hooks:
- id: clang-format
types_or: [file]
files: \.(cc|hh|h|cpp|hpp|cu|cuh)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 3b4bc031619cde2e0a9f3c4441ac7cc8227245a4 # v0.14.1, 16 Oct 2025
hooks:
- id: ruff-format
# Spell checking
- repo: https://github.com/codespell-project/codespell
rev: 63c8f8312b7559622c0d82815639671ae42132ac # v2.4.1, 28 Jan 2025
hooks:
- id: codespell
# 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: