forked from flexivrobotics/flexiv_ros2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (44 loc) · 1.24 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (44 loc) · 1.24 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
# To run checks over all the files in the repo manually:
#
# pre-commit run -a
#
# Or run checks automatically every time before commit:
#
# pre-commit install
#
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
args: [--maxkb=600]
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
- id: pretty-format-json
args: [--no-sort-keys, --autofix, --indent=4]
- id: trailing-whitespace
- repo: https://github.com/myint/docformatter
rev: v1.7.7
hooks:
- id: docformatter
args: [--in-place]
- repo: https://github.com/psf/black
rev: 25.11.0
hooks:
- id: black
language_version: python3
args: [--line-length=88]
- repo: local
hooks:
- id: clang-format
name: clang-format
description: Format files with ClangFormat.
entry: clang-format -i
language: system
files: \.(c|cc|cxx|cpp|cu|h|hh|hpp|hxx|java|js|m|proto)$
args: ["-fallback-style=none"]