Skip to content

Commit 1971e27

Browse files
aobolenskCopilot
andauthored
Add pre-commit configuration (#30)
Add a `.pre-commit-config.yaml` with hooks for clang-format, yamllint and flake8 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7eac674 commit 1971e27

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: end-of-file-fixer
6+
- id: trailing-whitespace
7+
- repo: https://github.com/adrienverge/yamllint
8+
rev: v1.37.1
9+
hooks:
10+
- id: yamllint
11+
- repo: https://github.com/pre-commit/mirrors-clang-format
12+
rev: v20.1.8
13+
hooks:
14+
- id: clang-format
15+
args: [--style=file]
16+
files: \.(c|cpp|h|hpp)$
17+
- repo: https://github.com/PyCQA/flake8
18+
rev: 7.3.0
19+
hooks:
20+
- id: flake8

0 commit comments

Comments
 (0)