forked from locustio/locust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
32 lines (29 loc) · 781 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
[tox]
envlist = py{36,37,38,39,310}
[flake8]
extend-exclude = build,examples/issue_*.py,src/readthedocs-sphinx-search/
ignore = E741,F401,W503,E402,E501,E731,E713,E203
per-file-ignores =
locust/test/*: F841
examples/*: F841
[testenv]
deps =
codecov
flake8
mock
retry
pyquery
cryptography
black==22.1.0
allowlist_externals =
bash
timeout
grep
commands =
flake8 . --count --show-source --statistics
coverage run -m unittest discover []
black --check .
bash -ec 'PYTHONUNBUFFERED=1 timeout 2s python3 examples/debugging.py >out.txt 2>err.txt || true'
grep -m 1 '/hello' out.txt
bash -ec '! grep . err.txt' # should be empty
bash -ec 'PYTHONUNBUFFERED=1 python3 examples/debugging_advanced.py | grep done'