ScyllaDB loves python & python loves ScyllaDB. It would benefit the project to start enforcing some code guidelines and basic QA with a linter along a PEP8 respect thanks to flake8. This patch adds a tox config to at least start with an assessment of the work to be done on all .py files in the code base. To reduce its noise, tests on long lines (> 80char) are ignored for now. Signed-off-by: Ultrabug <ultrabug@gentoo.org> Message-Id: <20170726134242.8927-1-ultrabug@gentoo.org>
21 lines
251 B
INI
21 lines
251 B
INI
[tox]
|
|
usedevelop=True
|
|
skipdist=True
|
|
|
|
[testenv]
|
|
deps =
|
|
pytest
|
|
pytest-flake8
|
|
|
|
commands =
|
|
pytest --flake8 -k 'not tests'
|
|
|
|
[flake8]
|
|
max-line-length = 120
|
|
exclude = .ropeproject,.tox,tests
|
|
show-source = False
|
|
|
|
[pytest]
|
|
flake8-ignore =
|
|
E501
|