forked from HorizonRobotics/EmbodiedGen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
78 lines (74 loc) · 2.32 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
78 lines (74 loc) · 2.32 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
- id: check-added-large-files
name: Check for added large files
description: Prevent giant files from being committed
entry: check-added-large-files
language: python
args: ["--maxkb=1024"]
- repo: local
hooks:
- id: cpplint-cpp-source
name: cpplint
description: Check cpp code style.
entry: python3 scripts/lint_src/lint.py
language: system
exclude: (?x)(^tools/|^thirdparty/|^patch_files/)
files: \.(c|cc|cxx|cpp|cu|h|hpp)$
args: [--project=asset_recons, --path]
- repo: local
hooks:
- id: pycodestyle-python
name: pep8-exclude-docs
description: Check python code style.
entry: pycodestyle
language: system
exclude: (?x)(^docs/|^thirdparty/|^scripts/build/)
files: \.(py)$
types: [file, python]
args: [--config=setup.cfg]
# pre-commit install --hook-type commit-msg to enable it
# - repo: local
# hooks:
# - id: commit-check
# name: check for commit msg format
# language: pygrep
# entry: '\A(?!(feat|fix|docs|style|refactor|perf|test|chore)\(.*\): (\[[a-zA-Z][a-zA-Z0-9_]+-[1-9][0-9]*\]|\[cr_id_skip\]) [A-Z]+.*)'
# args: [--multiline]
# stages: [commit-msg]
- repo: local
hooks:
- id: pydocstyle-python
name: pydocstyle-change-exclude-docs
description: Check python doc style.
entry: pydocstyle
language: system
exclude: (?x)(^docs/|^thirdparty/)
files: \.(py)$
types: [file, python]
args: [--config=pyproject.toml]
- repo: local
hooks:
- id: black
name: black-exclude-docs
description: black format
entry: black
language: system
exclude: (?x)(^docs/|^thirdparty/)
files: \.(py)$
types: [file, python]
args: [--config=pyproject.toml]
- repo: local
hooks:
- id: isort
name: isort
description: isort format
entry: isort
language: system
exclude: (?x)(^thirdparty/)
files: \.(py)$
types: [file, python]
args: [--settings-file=pyproject.toml]