Skip to content

Commit 4e18198

Browse files
author
SSC Template Sync
committed
Sync from ssciwr/cookiecutter-cpp-project
1 parent 4d39806 commit 4e18198

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
repos:
2+
# Format C++ code with Clang-Format - automatically applying the changes
3+
- repo: https://github.com/pre-commit/mirrors-clang-format
4+
rev: v16.0.6
5+
hooks:
6+
- id: clang-format
7+
args:
8+
- --style=Mozilla
9+
exclude: ^ext/
10+
11+
# Add some general purpose useful hooks
12+
- repo: https://github.com/pre-commit/pre-commit-hooks
13+
rev: v4.4.0
14+
hooks:
15+
# Make sure that contained YAML files are well-formed
16+
- id: check-yaml
17+
# Trim trailing whitespace of all sorts
18+
- id: trailing-whitespace
19+
# Apply a file size limit of 500kB
20+
- id: check-added-large-files
21+
# Unify file endings
22+
- id: end-of-file-fixer
23+
24+
# GitHub Actions Workflow linter
25+
- repo: https://github.com/rhysd/actionlint
26+
rev: v1.6.25
27+
hooks:
28+
- id: actionlint

0 commit comments

Comments
 (0)