This repository has been archived by the owner on Nov 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
52 lines (46 loc) · 1.52 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
[tox]
envlist =
py35,
py36,
py37,
py38,
pypy3,
pycodestyle,
pylint,
readme,
coverage
[testenv]
deps = -rrequirements-dev.txt
usedevelop = True
commands =
nosetests --with-flaky --exclude="test_nose_options_example" test/test_nose/
pytest -k 'example and not options' --doctest-modules test/test_pytest/
pytest -k 'example and not options' -n 1 test/test_pytest/
pytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py
nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py
pytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
[testenv:pycodestyle]
commands =
pycodestyle --ignore=E501 flaky
pycodestyle --ignore=E501 test
[testenv:pylint]
commands =
pylint --rcfile=.pylintrc flaky
pylint --rcfile=.pylintrc test -d C0330,W0621,C0411
[testenv:coverage]
commands =
python setup.py develop
nosetests --with-flaky --with-coverage --cover-package=flaky --exclude="test_nose_options_example" --no-flaky-report --cover-erase test/test_nose/
pytest -k 'example and not options' --doctest-modules --no-flaky-report --cov flaky --cov-report term-missing test/test_pytest/
pytest -p no:flaky --cov flaky --cov-report term-missing test/test_pytest/test_flaky_pytest_plugin.py
[testenv:readme]
deps =
docutils
pygments
commands =
rst2html.py --strict README.rst
rst2html.py --strict HISTORY.rst
rst2html.py --strict CONTRIBUTING.rst
[pycodestyle]
show-pep8 = True
show-source = True