forked from oauthlib/oauthlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (37 loc) · 906 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
[tox]
envlist = py36,py37,py38,pypy,pypy3,docs,readme,bandit,isort
[testenv]
deps=
-rrequirements-test.txt
commands=
pytest --cov=oauthlib tests/
# tox -e docs to mimick readthedocs build.
# as of today, RTD is using python3.6 and doesn't run "setup.py install"
[testenv:docs]
basepython=python3.6
skipsdist=True
deps=
sphinx
sphinx_rtd_theme
changedir=docs
whitelist_externals=make
commands=make clean html
# tox -e readme to mimick PyPI long_description check
[testenv:readme]
basepython=python3.8
deps=twine>=1.12.0
whitelist_externals=echo
commands=
twine check dist/*
[testenv:bandit]
basepython=python3.8
skipsdist=True
deps=bandit
commands=bandit -b bandit.json -r oauthlib/
whitelist_externals=bandit
[testenv:isort]
basepython = python3.8
usedevelop = false
deps = isort
changedir = {toxinidir}
commands = isort --recursive --check-only --diff oauthlib tests