8
8
9
9
10
10
[tox]
11
- envlist = test_package, typechecks, stylechecks, lint
11
+ envlist = test_package, checks
12
12
skipsdist = True
13
13
14
14
[testenv]
@@ -29,47 +29,29 @@ commands=
29
29
-vv \
30
30
{posargs:tests/}
31
31
32
+
32
33
[testenv:train]
33
34
envdir = {toxworkdir}/test_package
35
+
34
36
deps =
35
- {[testenv:test_package]deps}
37
+ {[testenv:test_package]deps}
36
38
37
39
setenv =
38
40
{[testenv:test_package]setenv}
39
-
40
41
commands =
41
42
python classification_model/train_pipeline.py
42
43
43
44
44
- [testenv:typechecks]
45
- envdir = {toxworkdir}/test_package
46
-
45
+ [testenv:checks]
46
+ envdir = {toxworkdir}/checks
47
47
deps =
48
- {[testenv:test_package]deps}
49
-
50
- commands = {posargs:mypy classification_model}
51
-
52
-
53
- [testenv:stylechecks]
54
- envdir = {toxworkdir}/test_package
55
-
56
- deps =
57
- {[testenv:test_package]deps}
58
-
59
- commands = {posargs:flake8 classification_model tests}
60
-
61
-
62
- [testenv:lint]
63
- envdir = {toxworkdir}/test_package
64
-
65
- deps =
66
- {[testenv:test_package]deps}
67
-
48
+ -r{toxinidir}/requirements/typing_requirements.txt
68
49
commands =
50
+ flake8 classification_model tests
69
51
isort classification_model tests
70
52
black classification_model tests
71
- mypy classification_model
72
- flake8 classification_model
53
+ {posargs: mypy classification_model}
54
+
73
55
74
56
[flake8]
75
57
exclude = .git,env
0 commit comments