forked from tormach/hal_ros_control
/
.pre-commit-config.yaml
48 lines (44 loc) · 1.25 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-ast
- id: fix-byte-order-marker
- id: trailing-whitespace
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- repo: local
hooks:
- id: black
name: Run black code formatter
description: This hook formats Python code.
entry: env LC_ALL=C.UTF-8 black -q
language: system
args: [-l, "80"]
types: [python]
- id: clang-format
name: Run clang-format
description: Clang C/C++ code formatter.
entry: clang-format -i
args: [-style=file]
language: system
types: [file, c++]
# note: formatting style in .clang-format
- id: shfmt
name: Run shfmt
description: shfmt Shell code formatter.
entry: shfmt -w
args: [-i=4]
language: system
types: [file, shell]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: flake8
# note: ignores and excluded files in .flake8