-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
54 lines (54 loc) · 1.42 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
default_stages:
- commit
fail_fast: true
repos:
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.5.0
hooks:
- id: reorder-python-imports
name: Import reordering
- repo: local
hooks:
- id: black
name: Code formatting
entry: poetry run black
language: system
files: '.*\.py'
- id: mypy
name: Static type checking
entry: poetry run mypy -p vigilant_crypto_snatch
language: system
files: '.*\.py'
pass_filenames: false
- id: pytest
name: Unit tests
entry: poetry run coverage run -m pytest
pass_filenames: false
language: system
files: '.*\.py'
- id: test-drive
name: Test drive
entry: poetry run vigilant-crypto-snatch test-drive
pass_filenames: false
language: system
files: '.*\.py'
- id: coverage-xml
name: Coverage XML
entry: poetry run coverage xml
pass_filenames: false
language: system
files: '.*\.py'
- id: coverage-html
name: Coverage HTML
entry: poetry run coverage html
pass_filenames: false
language: system
files: '.*\.py'
- id: codecov
name: Upload coverage
entry: codecov-full
pass_filenames: false
language: system
always_run: true
stages:
- post-commit