forked from libhal/libhal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (42 loc) · 1.15 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (42 loc) · 1.15 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
repos:
# General file fixes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
args: [--fix=lf]
# Spell checking
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.6.0
hooks:
- id: cspell
files: \.(cpp|cppm|hpp|h|md)$
# C++ formatting with clang-format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.8
hooks:
- id: clang-format
types_or: [c, c++]
files: \.(cpp|cppm|hpp|h|c)$
# V4 Doxygen documentation checker
- repo: local
hooks:
- id: doxygen-check
name: doxygen-check
entry: doxygen
args: [v4/docs/doxygen.conf]
language: system
pass_filenames: false
files: \.(cpp|cppm|hpp|h)$
# # V5 Doxygen documentation checker (later)
# - repo: local
# hooks:
# - id: doxygen-check
# name: doxygen-check
# entry: doxygen
# args: [v5/docs/doxygen.conf]
# language: system
# pass_filenames: false
# files: \.(cpp|cppm|hpp|h)$