-
-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathtox.ini
37 lines (31 loc) · 811 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
[tox]
envlist = check, docs, py36, py37, py38
[testenv]
passenv = TRAVIS TRAVIS_* PYTEST_ADDOPTS
extras = test, check, docs
commands =
python -m pytest -vv
[flake8]
ignore =
[isort]
known_first_party = aqt
known_third_party = docutils,flake8,pyannotate_runtime,pytest,pytz,requests,setuptools,sphinx,yaml,packaging
[testenv:check]
basepython = python3.7
extras = check
commands =
check-manifest {toxinidir}
flake8 aqt tests setup.py
isort --verbose --check-only --diff --recursive aqt tests setup.py
python -m pep517.build --source --out-dir dist/ ./
twine check dist/*
[testenv:docs]
basepython = python3.7
extras = docs
commands =
sphinx-build {posargs:-E} -b html docs dist/docs
sphinx-build -b linkcheck docs dist/docs
[gh-actions]
python =
3.6: py36
3.8: py38