-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
71 lines (65 loc) · 1.32 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tox]
minversion = 3.2.0
skipsdist = True
envlist =
tox
clean
py38
flake8
docs
lint
pkg
ignore_basepython_conflict=true
[testenv:tox]
passenv = CI TRAVIS TRAVIS_*
deps = codecov
commands = codecov
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:py38]
basepython = python3
usedevelop = True
deps =
pytest
pytest-cov
whitelist_externals = python3
commands =
pytest --cov=personroles --cov-report=term-missing
setenv =
PYTHONPATH = {toxinidir}
PIP_LOG={envdir}/pip.log
PIP_DISABLE_PIP_VERSION_CHECK=1
# Avoid 2020-01-01 warnings: https://github.com/pypa/pip/issues/6207
PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command
passenv =
CI
COVERAGE*
CODECOV_*
TRAVIS*
TWINE_*
[testenv:pep8]
deps = flake8
flake8-import-order
flake8-blind-except
flake8-builtins
flake8-rst-docstring
flake8-logging-format
commands = flake8
[travis]
python =
3.8: py38
[testenv:pkg]
whitelist_externals = /usr/bin/rm
deps =
twine>=2.0.0
wheel>=0.33.6
check-manifest>=0.42
commands =
rm -rf {toxinidir}/dist build */*.egg-info *.egg-info
python setup.py check -m -s
python setup.py sdist bdist_wheel
check-manifest
# does not work:
# python -m twine check {toxinidir}/dist/*