forked from harvimt/quamash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
50 lines (44 loc) · 1.04 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
[tox]
# this tox file kinda works, but it's designed for a pretty
# specific environment
envlist={py33,py34}-{pyqt4,pyqt5,pyside}
# I work on an NFS drive, so switching the work dir
# to a local drive speeds it up quite a bit
toxworkdir={homedir}/quamash-tox-work
[testenv]
sitepackages=True
deps=
pytest
py33: asyncio
commands=py.test
setenv=
pyqt4: QUAMASH_QTIMPL=PyQt4
pyqt5: QUAMASH_QTIMPL=PyQt5
pyside: QUAMASH_QTIMPL=PySide
[pytest]
addopts=--doctest-modules quamash quamash tests
[testenv:flake8]
sitepackages=True
setenv=QUAMASH_QTIMPL=PySide
basepython=python3.4
deps=
flake8
pep8-naming
flake8-debugger
flake8-docstrings
commands=
# different parameters for different parts of the project
flake8 --ignore=D1,W191,E501
flake8 --select=D1 quamash/*.py
[testenv:coverage]
sitepackages=True
setenv=QUAMASH_QTIMPL=PySide
basepython=python3.4
deps=
pytest
pytest-cov
commands=py.test --cov quamash
[flake8]
max-complexity=15
ignore=D1,W191,E501,E402,E704,E701
exclude=build,.git,__pycache__,wheelhouse,htmlcov,dist,.cache,*.egg-info,appveyor