88
99
1010[tox]
11- envlist = test_package, typechecks, stylechecks, lint
11+ envlist = test_package, checks
1212skipsdist = True
1313
1414[testenv]
@@ -29,47 +29,29 @@ commands=
2929 -vv \
3030 {posargs:tests/}
3131
32+
3233[testenv:train]
3334envdir = {toxworkdir}/test_package
35+
3436deps =
35- {[testenv:test_package]deps}
37+ {[testenv:test_package]deps}
3638
3739setenv =
3840 {[testenv:test_package]setenv}
39-
4041commands =
4142 python classification_model/train_pipeline.py
4243
4344
44- [testenv:typechecks]
45- envdir = {toxworkdir}/test_package
46-
45+ [testenv:checks]
46+ envdir = {toxworkdir}/checks
4747deps =
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
6849commands =
50+ flake8 classification_model tests
6951 isort classification_model tests
7052 black classification_model tests
71- mypy classification_model
72- flake8 classification_model
53+ {posargs: mypy classification_model}
54+
7355
7456[flake8]
7557exclude = .git,env
0 commit comments