File tree 2 files changed +10
-4
lines changed 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,5 @@ test/resources/local_mode_lock
6
6
__pycache__ /
7
7
.idea /
8
8
.DS_Store
9
+ ** /* .pyc
10
+ ** .pyc
Original file line number Diff line number Diff line change @@ -18,22 +18,25 @@ exclude =
18
18
lib/
19
19
max-complexity = 10
20
20
ignore =
21
+ C901,
22
+ E203, # whitespace before ':': Black disagrees with and explicitly violates this.
21
23
FI10,
22
24
FI12,
23
25
FI13,
24
26
FI14,
25
27
FI15,
26
28
FI16,
27
29
FI17,
28
- FI18,
30
+ FI18, # __future__ import "annotations" missing -> check only Python 3.7 compatible
29
31
FI50,
30
32
FI51,
31
33
FI52,
32
34
FI53,
33
35
FI54,
34
36
FI55,
35
37
FI56,
36
- FI57
38
+ FI57,
39
+ W503
37
40
require-code = True
38
41
39
42
[testenv]
@@ -46,8 +49,8 @@ passenv =
46
49
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
47
50
AWS_DEFAULT_REGION
48
51
commands =
49
- coverage run --source sagemaker_pytorch_serving_container -m py.test test/unit {posargs}
50
- coverage report
52
+ coverage run --source sagemaker_pytorch_serving_container -m pytest {posargs}
53
+ {env:IGNORE_COVERAGE:} coverage report -- fail-under =90 --include *sagemaker_pytorch_serving_container*
51
54
deps =
52
55
coverage
53
56
pytest
62
65
torchvision
63
66
retrying
64
67
six
68
+ future
65
69
66
70
[testenv:flake8]
67
71
basepython = python
You can’t perform that action at this time.
0 commit comments