-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
49 lines (49 loc) · 1.16 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
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
args:
- style
- style-resources/tests
#- repo: https://github.com/pycqa/isort
#rev: 5.9.2
#hooks:
#- id: isort
#args:
#- tests style
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: ^tests/fixtures/diffs/
- repo: https://github.com/ambv/black
rev: 22.6.0
hooks:
- id: black
language_version: python3.8
args:
- --exclude=/(\.eggs|\.git|\.hg|\.venv|build|dist|portfolio|)/
- --target-version=py38
- -l 80
- repo: local
hooks:
- id: pytest
name: pytest
entry: bash -c 'make test'
language: system
pass_filenames: false
types: [python]
stages: [push]
verbose: true
- repo: local
hooks:
- id: e2e-test
name: end to end tests
entry: bash -c 'make e2e-test'
language: system
pass_filenames: false
types: [python]
stages: [push]
verbose: true