-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
47 lines (47 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
repos:
- repo: local
hooks:
- id: generate
name: Generate
language: system
entry: bash -c "./generate.sh"
files: '^(\.generator/.*|\.pre-commit-config\.yaml|Makefile|\tests/scenarios/features/.*)'
pass_filenames: false
verbose: true
- id: generator
name: generator
language: python
entry: bash -c "cd .generator && poetry install && poetry run python -m generator ./schemas/v1/openapi.yaml ./schemas/v2/openapi.yaml -o ../src/"
files: "^.generator/.*"
stages: [manual]
pass_filenames: false
additional_dependencies:
- "poetry"
- id: examples
name: examples
language: python
entry: bash -c "cd .generator && poetry install && poetry run pytest && cd .."
files: "^.generator/"
stages: [manual]
pass_filenames: false
additional_dependencies:
- "poetry"
- id: format
name: Format
language: system
entry: cargo fmt
pass_filenames: false
stages: [manual]
- id: lint
name: Lint
entry: cargo check
language: system
pass_filenames: false
stages: [manual]
- id: license-check
name: Check license file
entry: bash -c "scripts/license-check.sh"
language: system
stages: ["manual"]
verbose: true
pass_filenames: false