-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
64 lines (44 loc) · 985 Bytes
/
tox.ini
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
55
56
57
58
59
60
61
62
63
64
[tox]
envlist = test_package, typechecks, lint, stylechecks
skipsdist = True
[testenv]
install_command = pip install {opts} {packages}
[testenv:test_package]
deps =
-rrequirements/test_requirements.txt
setenv =
PYTHONPATH=.
PYTHONHASHSEED=0
commands=
pytest \
-s \
-vv \
{posargs:tests/}
[testenv:train]
envdir = {toxworkdir}/test_package
deps =
{[testenv:test_package]deps}
setenv =
{[testenv:test_package]setenv}
commands=
python regression_model/train_pipeline.py
[testenv:typechecks]
envdir = {toxworkdir}/test_package
deps =
{[testenv:test_package]deps}
commands = {posargs:mypy regression_model}
[testenv:stylechecks]
envdir = {toxworkdir}/test_package
deps =
{[testenv:test_package]deps}
commands = {posargs:flake8 regression_model tests}
[testenv:lint]
envdir = {toxworkdir}/test_package
deps =
{[testenv:test_package]deps}
commands =
isort regression_model tests
black regression_model tests
[flake8]
exclude = .git,env
max-line-length = 100