forked from miyakogi/pyppeteer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
49 lines (46 loc) · 1.26 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
[tox]
envlist = py36-{unittest,nose,nose2,pytest},py35,flake8,mypy,pydocstyle,docs
[testenv]
basepython =
py35: python3.5
py36: python3.6
flake8,mypy,pydocstyle,docs: python
setenv =
TOX = 1
whitelist_externals =
make
cp
changedir =
py35,py36: {toxworkdir}
flake8,mypy,pydocstyle,docs: {toxinidir}
recreate =
py35: true
deps =
py35,py36: -r{toxinidir}/requirements-test.txt
unittest: coverage
nose: nose
nose2: nose2
pytest: pytest
flake8: flake8
mypy: mypy
pydocstyle: pydocstyle
docs: -r{toxinidir}/requirements-docs.txt
commands =
py35: python -m unittest discover {toxinidir}/tests
unittest: coverage run --rcfile {toxinidir}/.coveragerc -m unittest discover {toxinidir}/tests
nose: nosetests -c {toxinidir}/.noserc {toxinidir}/tests
nose2: nose2 -s {toxinidir}/tests
pytest: py.test --import-mode append {toxinidir}/tests
flake8: flake8 pyppeteer setup.py
mypy: mypy pyppeteer
pydocstyle: pydocstyle pyppeteer
docs: make docs
docs: make -C {toxinidir} clean-build clean-pyc
unittest: coverage report
unittest: cp .coverage {toxinidir}
[flake8]
exclude = docs,.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,out
max-complexity = 7
[pydocstyle]
ignore = D105,D203,D213,D404
match_dir = (?!(tmp|docs|ja_docs|tests|\.)).*