forked from fetchai/agents-aea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
178 lines (156 loc) · 5.16 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[tox]
envlist = bandit-main, bandit-tests, black, black-check, copyright_check, docs, flake8, liccheck, mypy, py3.8, py3.7, py3.6
skipsdist = False
ignore_basepython_conflict = True
[testenv:py3.8]
basepython = python3.8
passenv = *
deps =
Cython
pytest==5.3.5
pytest-cov==2.8.1
pytest-asyncio==0.10.0
pytest-randomly==3.2.1
docker
colorlog==4.1.0
defusedxml==0.6.0
oef==0.8.1
gym==0.15.6
numpy==1.18.1
vyper==0.1.0b12
openapi-core==0.13.2
openapi-spec-validator==0.2.8
black==19.10b0
mistune==2.0.0a4
aiohttp==3.6.2
SQLAlchemy==1.3.16
pynacl==1.3.0
pexpect==4.8.0
pytest-rerunfailures==9.0
commands =
pip install git+https://github.com/pytoolz/cytoolz.git#egg=cytoolz==0.10.1.dev0
pip install -e .[all]
pip install -i https://test.pypi.org/simple/ fetch-p2p-api==0.0.2
pytest -rfE --doctest-modules aea packages/fetchai/protocols packages/fetchai/connections tests/ --cov-report=html --cov-report=xml --cov-report=term --cov=aea --cov=packages/fetchai/protocols --cov=packages/fetchai/connections {posargs}
[testenv:py3.7]
basepython = python3.7
passenv = *
deps =
pytest==5.3.5
pytest-cov==2.8.1
pytest-asyncio==0.10.0
pytest-randomly==3.2.1
docker
colorlog==4.1.0
defusedxml==0.6.0
oef==0.8.1
gym==0.15.6
numpy==1.18.1
tensorflow==1.14.0
vyper==0.1.0b12
openapi-core==0.13.2
openapi-spec-validator==0.2.8
black==19.10b0
mistune==2.0.0a4
aiohttp==3.6.2
SQLAlchemy==1.3.16
pynacl==1.3.0
pexpect==4.8.0
pytest-rerunfailures==9.0
commands =
pip install -e .[all]
pip install -i https://test.pypi.org/simple/ fetch-p2p-api==0.0.2
pytest -rfE --doctest-modules aea packages/fetchai/protocols packages/fetchai/connections tests/ --cov-report=html --cov-report=xml --cov-report=term --cov=aea --cov=packages/fetchai/protocols --cov=packages/fetchai/connections {posargs}
[testenv:py3.6]
basepython = python3.6
passenv = *
deps =
pytest==5.3.5
pytest-cov==2.8.1
pytest-asyncio==0.10.0
pytest-randomly==3.2.1
docker
colorlog==4.1.0
defusedxml==0.6.0
oef==0.8.1
gym==0.15.6
numpy==1.18.1
tensorflow==1.14.0
vyper==0.1.0b12
openapi-core==0.13.2
openapi-spec-validator==0.2.8
black==19.10b0
mistune==2.0.0a4
aiohttp==3.6.2
SQLAlchemy==1.3.16
pynacl==1.3.0
pexpect==4.8.0
pytest-rerunfailures==9.0
commands =
pip install -e .[all]
pip install -i https://test.pypi.org/simple/ fetch-p2p-api==0.0.2
pytest -rfE --doctest-modules aea packages/fetchai/protocols packages/fetchai/connections tests/ --cov-report=html --cov-report=xml --cov-report=term --cov=aea --cov=packages/fetchai/protocols --cov=packages/fetchai/connections {posargs}
[testenv:bandit]
deps = bandit==1.6.2
commands = bandit -s B101 -r aea benchmark examples packages scripts tests
[testenv:black]
deps = black==19.10b0
commands = black aea benchmark examples packages scripts tests
[testenv:black-check]
deps = black==19.10b0
commands = black aea benchmark examples packages scripts tests --check --verbose
[testenv:copyright_check]
commands = {toxinidir}/scripts/check_copyright_notice.py --directory {toxinidir}
[testenv:hash_check]
deps = python-dotenv
commands = {toxinidir}/scripts/generate_ipfs_hashes.py --check {posargs}
[testenv:package_version_checks]
deps = python-dotenv
commands = {toxinidir}/scripts/check_package_versions_in_docs.py
[testenv:package_dependencies_checks]
deps = python-dotenv
commands = {toxinidir}/scripts/check_package_dependencies.py
[testenv:docs]
description = Build the documentation.
deps = markdown==3.2.1
mkdocs==1.1
mkdocs-material==4.6.3
pymdown-extensions==6.3
bs4==0.0.1
commands = pip3 install git+https://github.com/pugong/mkdocs-mermaid-plugin.git#egg=mkdocs-mermaid-plugin
mkdocs build --clean
[testenv:docs-serve]
description = Run a development server for working on documentation.
deps = markdown==3.2.1
mkdocs==1.1
mkdocs-material==4.6.3
pymdown-extensions==6.3
bs4==0.0.1
commands = pip3 install git+https://github.com/pugong/mkdocs-mermaid-plugin.git#egg=mkdocs-mermaid-plugin
mkdocs build --clean
python -c 'print("###### Starting local server. Press Control+C to stop server ######")'
mkdocs serve -a localhost:8080
[testenv:flake8]
deps = flake8==3.7.9
flake8-bugbear==20.1.4
flake8-docstrings==1.5.0
flake8-import-order==0.18.1
pydocstyle==3.0.0
commands = flake8 aea benchmark examples packages scripts tests
[testenv:liccheck]
deps = liccheck==0.4.3
commands = pip install ".[all]"
{toxinidir}/scripts/freeze_dependencies.py -o {envtmpdir}/requirements.txt
liccheck -s strategy.ini -r {envtmpdir}/requirements.txt -l PARANOID
[testenv:mypy]
deps = mypy==0.761
aiohttp==3.6.2
commands = mypy aea benchmark examples packages scripts tests
[testenv:pylint]
deps = pylint==2.5.2
pytest==5.3.5
commands = pip install -e .[all]
pylint aea benchmark examples packages scripts --disable=E1136
[testenv:safety]
deps = safety==1.8.5
commands = safety check -i 37524 -i 38038 -i 37776 -i 38039