2019-01-16 23:10:39 +01:00
|
|
|
[tox]
|
2020-05-09 00:18:28 +02:00
|
|
|
envlist = pep8,py3
|
2019-01-16 23:10:39 +01:00
|
|
|
|
|
|
|
[testenv]
|
2019-10-05 14:46:10 +02:00
|
|
|
deps =
|
|
|
|
pytest
|
2020-04-10 14:15:06 +02:00
|
|
|
py3: coverage
|
2019-10-05 14:46:10 +02:00
|
|
|
commands = pytest tests/
|
2019-01-16 23:10:39 +01:00
|
|
|
|
2020-04-10 14:15:06 +02:00
|
|
|
[testenv:py3]
|
|
|
|
# for py3 env we will get code coverage
|
|
|
|
commands =
|
|
|
|
coverage run --branch --source=buildozer -m pytest {posargs:tests/}
|
|
|
|
coverage report -m
|
|
|
|
|
2019-01-16 23:10:39 +01:00
|
|
|
[testenv:pep8]
|
|
|
|
deps = flake8
|
2020-04-13 13:54:55 +02:00
|
|
|
commands = flake8 buildozer/ tests/
|
2019-01-16 23:10:39 +01:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
ignore =
|
2020-04-13 13:54:55 +02:00
|
|
|
E121, # continuation line under-indented for hanging indent
|
|
|
|
E122, # continuation line missing indentation or outdented
|
|
|
|
E126, # continuation line over-indented for hanging indent
|
|
|
|
E127, # continuation line over-indented for visual indent
|
|
|
|
E128, # continuation line under-indented for visual indent
|
|
|
|
E131, # continuation line unaligned for hanging indent
|
|
|
|
E402, # module level import not at top of file
|
|
|
|
E501, # line too long
|
|
|
|
E722, # do not use bare 'except'
|
|
|
|
W503, # line break before binary operator
|
2020-05-19 00:10:21 +02:00
|
|
|
W504 # line break after binary operator
|