-
-
Notifications
You must be signed in to change notification settings - Fork 423
/
tox.ini
35 lines (31 loc) · 865 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
[tox]
envlist=py{38,39,310,311,312,py310},docs,readme,ruff
[testenv]
description=run test on {basepython}
deps=
-r{toxinidir}/requirements-test.txt
commands=coverage run --source=requests_oauthlib -m unittest discover
pass_env=OAUTH_*
AUTH0_*
# tox -e docs to mimic readthedocs build.
# should be similar to .readthedocs.yaml pipeline
[testenv:docs]
description=mimic readthedocs build
basepython=python3.11
skipsdist=True
deps=
-r{toxinidir}/docs/requirements.txt
-r{toxinidir}/requirements-test.txt
changedir=docs
allowlist_externals=make
commands=make clean html
# tox -e readme to mimic pypi validation of readme/rst files.
[testenv:readme]
description=mimic pypi validation of readme/rst files
basepython=python3.11
deps=twine>=1.12.0
commands=twine check .tox/.pkg/dist/*
[testenv:ruff]
basepython=python3.11
deps=ruff
commands=ruff .