forked from aanari/pg-materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (33 loc) · 725 Bytes
/
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
[tox]
minversion = 2.0
envlist = pep8,py27,py33,py34,py35
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
coverage run --source={toxinidir}/pg_materialize -m pytest -sv tests/
coverage report
[testenv:coverage]
commands =
{[testenv]commands}
coverage {posargs:html}
[testenv:pep8]
deps =
flake8
flake8-import-order
commands =
flake8 {posargs} pg_materialize tests
[flake8]
show-source = True
import-order-style = pep8
max-line-length = 120
exclude = tests/*
max-complexity = 26
[testenv:release]
deps =
{[testenv]deps}
twine
commands =
python setup.py -q bdist_wheel sdist
twine upload --skip-existing {toxinidir}/dist/*