-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
45 lines (42 loc) · 856 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
44
45
[tox]
isolated_build = true
envlist = py37, py38, py39, py310, py311, lint
[gh-actions]
python =
3.11: py311
3.10: py310
3.9: py39
3.8: py38
3.7: py37
[testenv:lint]
whitelist_externals =
isort
black
flake8
poetry
mkdocs
twine
extras =
test
doc
dev
commands =
mdformat --wrap 120 README.md
isort requests_oauth2client
black requests_oauth2client tests
flake8 requests_oauth2client tests
mypy requests_oauth2client
poetry build
mkdocs build
twine check dist/*
[testenv]
allowlist_externals =
poetry
commands_pre =
poetry install --no-root --sync -E test
passenv = *
setenv =
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = ignore
commands =
poetry run pytest -s --cov=requests_oauth2client --cov-append --cov-report=xml --cov-report term-missing tests