-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (60 loc) · 1.85 KB
/
.pre-commit-config.yaml
File metadata and controls
60 lines (60 loc) · 1.85 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
# cspell:ignore EDITMSG
default_stages: [pre-commit]
default_install_hook_types: [pre-commit, commit-msg]
repos:
# Standard hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
args: ["--allow-multiple-documents"]
- id: debug-statements
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: fix-byte-order-marker
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.4
hooks:
- id: clang-format
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v10.0.0
hooks:
- id: cspell # Spell check changed files
args:
- --no-must-find-files
- --no-progress
- --no-summary
- --show-context
- --show-suggestions
- --gitignore
- --files # this needs to be the last argument so that the paths are passed correctly.
additional_dependencies: ["@cspell/dict-en-ca"]
- id: cspell # Spell check the commit message
name: check commit message spelling
args:
- --no-must-find-files
- --no-progress
- --no-summary
- --language-id cpp
- --files
- .git/COMMIT_EDITMSG
stages: [commit-msg]
always_run: true # This might not be necessary.
additional_dependencies: ["@cspell/dict-en-ca"]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.12
hooks:
# Run the linter.
- id: ruff-check
# Run the formatter.
- id: ruff-format