-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
73 lines (73 loc) · 2.17 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
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
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: "^tests/resources/rosdep_mocks/.*$"
repos:
- hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-added-large-files
- id: check-executables-have-shebangs
# basic checks for custom yaml syntax, i.e. !reference
- id: check-yaml
name: Check YAML (unsafe)
args: [--unsafe]
files: .gitlab-ci.yml
# check other yaml files normally
- id: check-yaml
exclude: .gitlab-ci.yml
- id: check-json
- id: check-toml
- id: check-merge-conflict
- id: forbid-submodules
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
- repo: local
hooks:
- entry: poetry lock --check
id: lockfile
language: system
name: Lockfile check
files: '(pyproject.toml|poetry.lock)'
require_serial: true
pass_filenames: false
- entry: ./ci-format.sh
id: format
language: system
name: Formatting
types: [python]
- entry: ./ci-typing.sh
id: typing
language: system
name: typing
types: [python]
require_serial: true
pass_filenames: false
- entry: ./ci-lint.sh
id: lint
language: system
name: linting
types: [python]
- entry: ./ci-bst-check.sh
id: bst_check
language: system
name: bst checks
stages: [manual]
require_serial: true
pass_filenames: false
- entry: ./ci-unit-test.sh
id: unit tests
language: system
name: unit tests
types: [python]
stages: [manual]
require_serial: true
pass_filenames: false
- entry: ./ci-integration-test.sh
id: integration tests
language: system
name: integration tests
types: [python]
stages: [manual]
require_serial: true
pass_filenames: false