This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
66 lines (56 loc) · 1.71 KB
/
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
65
66
[tox]
envlist = flake8, mypy, black, black-check, py3.6, py3.7, py3.8
skipsdist = False
ignore_basepython_conflict = True
[testenv:py3.6]
basepython = python3.6
whitelist_externals = pipenv
deps =
pytest==5.3.5
pytest-cov==2.8.1
docker
commands =
pipenv install
pytest -rfE --doctest-modules tac tests/ --cov-report=html --cov-report=term --cov=tac {posargs}
[testenv:py3.7]
basepython = python3.7
whitelist_externals = pipenv
deps =
pytest==5.3.5
pytest-cov==2.8.1
docker
commands =
pipenv install
pytest -rfE --doctest-modules tac tests/ --cov-report=html --cov-report=term --cov=tac {posargs}
[testenv:py3.8]
basepython = python3.8
whitelist_externals = pipenv
deps =
pytest==5.3.5
pytest-cov==2.8.1
docker
commands =
pipenv install
pytest -rfE --doctest-modules tac tests/ --cov-report=html --cov-report=term --cov=tac {posargs}
[testenv:flake8]
skipsdist = True
skip_install = True
deps = flake8==3.7.9
flake8-docstrings==1.5.0
pydocstyle==3.0.0
commands = flake8 tac simulation sandbox scripts setup.py templates tests --exclude=tac/gui/static,tac/gui/templates,.md,tac/*_pb2.py,tac/gui/.visdom_env,tac/__init__.py,scripts/oef/launch.py --ignore=E501,E701,W503
[testenv:mypy]
skipsdist = True
skip_install = True
deps = mypy==0.770
commands = mypy sandbox scripts setup.py simulation/v1 tac templates tests --config-file mypy.ini
[testenv:black]
skipsdist = True
skip_install = True
deps = black==19.10b0
commands = black sandbox scripts setup.py simulation/v1 tac templates tests
[testenv:black-check]
skipsdist = True
skip_install = True
deps = black==19.10b0
commands = black sandbox scripts setup.py simulation/v1 tac templates tests --check --verbose