-
Notifications
You must be signed in to change notification settings - Fork 222
/
tox.ini
40 lines (34 loc) · 1.13 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
[tox]
envlist = py26, py27, py33, py34, py35, py36, py37, py38, py39, flake8
[testenv]
changedir = tests
commands =
; a workaround for tox bug: https://bitbucket.org/hpk42/tox/issue/176/tox-doesnt-install-the-package-being
pip install -I {toxinidir}/
py.test test_afinn.py
py.test --doctest-modules {envsitepackagesdir}/afinn
deps = pytest
[testenv:py27]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
changedir = tests
commands =
; a workaround for tox bug: https://bitbucket.org/hpk42/tox/issue/176/tox-doesnt-install-the-package-being
pip install -I {toxinidir}/
py.test test_afinn.py
py.test --doctest-modules {envsitepackagesdir}/afinn
; https://stackoverflow.com/questions/32757765/
py.test --cov={envsitepackagesdir}/afinn --cov-report=term --basetemp={envtmpdir}
python {toxinidir}/run_coveralls.py
deps =
pytest
coverage
pytest-cov
coveralls
[testenv:flake8]
commands =
pip install -I {toxinidir}/
flake8 {envsitepackagesdir}/afinn
pydocstyle {envsitepackagesdir}/afinn
deps = flake8
; flake8-docstrings ; pep257 D203/D211 incompatibility
pydocstyle