Skip to content

Commit 3d4fd4d

Browse files
committed
⭐ add basic hooks
1 parent 76b3d73 commit 3d4fd4d

29 files changed

Lines changed: 1733 additions & 383 deletions

.coveragerc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[run]
2+
branch = True
3+
include = easytrader/*
4+
omit = tests/*
5+
6+
[report]
7+
fail_under = -1

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
bak
2+
.mypy_cache
3+
.pyre
4+
.pytest_cache
15
yjb_account.json
26
htt.json
37
gft.json

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
fail_fast: true
2+
repos:
3+
- repo: local
4+
hooks:
5+
- id: python_sort_imports
6+
name: python_sort_imports
7+
entry: pipenv run sort_imports
8+
language: system
9+
types: [python]
10+
- id: python_format
11+
name: python_format
12+
entry: pipenv run format
13+
language: system
14+
types: [python]
15+
- id: python_lint
16+
name: python_lint
17+
entry: pipenv run lint
18+
language: system
19+
types: [python]
20+
- id: python_type_check
21+
name: python_type_check
22+
entry: pipenv run type_check
23+
language: system
24+
types: [python]
25+
- id: python_test
26+
name: python_test
27+
entry: pipenv run test
28+
language: system
29+
types: [python]
30+
verbose: true
31+
- id: django_test
32+
name: django_test
33+
entry: pipenv run test
34+
language: system
35+
types: [python]
36+
verbose: true

0 commit comments

Comments
 (0)