-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (54 loc) · 1.45 KB
/
.pre-commit-config.yaml
File metadata and controls
62 lines (54 loc) · 1.45 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
# This file requires prek rather than pre-commit
exclude:
glob:
- "tools/**/*.pro"
- "tools/**/*.m"
- "tools/**/*.[ch]"
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: builtin
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
# This would be nice to use, but it is a significant slowdown:
# # Sync versions of hook tools with `uv.lock`
# - repo: https://github.com/tsvikas/sync-with-uv
# rev: v0.5.0
# hooks:
# - id: sync-with-uv
# C++ formatting
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.0
hooks:
- id: clang-format
types_or: [c++, c, cuda]
# Python linting and formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.5
hooks:
# Run the linter.
- id: ruff-check
# Run the formatter.
- id: ruff-format
# CMake formatting
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
additional_dependencies: [pyyaml>=5.1]
# Various config files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.0
hooks:
- id: check-github-workflows
- id: check-readthedocs
- id: check-citation-file-format
- id: check-dependabot
# Docs linting
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v1.0.2
hooks:
- id: sphinx-lint
files: 'manual/sphinx/.*'