forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
33 lines (33 loc) · 1.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
---
default_stages: [commit]
default_language_version:
python: python3.7
repos:
- repo: local
hooks:
- id: isort
stages: [commit]
name: isort
entry: bash -c 'pipenv run isort --check .'
language: system
types: [python]
- id: flake8
stages: [commit]
name: flake8
entry: bash -c 'pipenv run flake8 .'
language: system
- id: mypy
stages: [commit]
name: mypy
entry: bash -c 'pipenv run mypy src/build_workflow tests/tests_build_workflow src/checkout_workflow tests/tests_checkout_workflow src/run_assemble.py tests/test_run_assemble.py src/assemble_workflow tests/tests_assemble_workflow src/manifests tests/tests_manifests src/paths tests/tests_paths src/system tests/tests_system src/ci_workflow tests/tests_ci_workflow src/manifests_workflow tests/tests_manifests_workflow'
language: system
- id: pytest
stages: [commit]
name: pytest
entry: bash -c 'pipenv run pytest'
language: system
- id: yamllint
stages: [commit]
name: yamllint
entry: bash -c 'pipenv run yamllint .'
language: system