-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.37 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
repos:
- repo: local
hooks:
- id: generate
name: Generate
language: node
entry: bash -c "./generate.sh"
files: '^(\.generator/.*|\.pre-commit-config\.yaml|package\.json|yarn\.lock|\.eslintrc\.js|Makefile|\features/.*|packages/.*)'
pass_filenames: false
- id: lint
name: Lint
language: node
entry: yarn run lint:fix
stages: [manual]
pass_filenames: false
language_version: "21.7.3"
- id: lint-examples
name: Lint examples
language: node
entry: yarn run lint:fix-examples
stages: [manual]
pass_filenames: false
language_version: "21.7.3"
- 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 ../packages"
files: "^.generator/(config|schemas/v1|src|poetry.lock|pyproject.toml)"
stages: [manual]
pass_filenames: false
additional_dependencies:
- "poetry"
- id: examples
name: examples
language: python
entry: bash -c "cd .generator && poetry install && poetry run pytest"
files: "^.generator/"
stages: [manual]
pass_filenames: false
additional_dependencies:
- "poetry"