Files
krkn/tox.ini
Yashashree Suresh f5ae7818fd Added python linters and enabled travis CI to run linters
This commit adds python linters as it improves the code quality.
Travis CI is enabled to run linters on each PR to make sure it
follows the best practices and doesn't break the tool.
2020-05-14 09:08:59 -04:00

25 lines
450 B
INI

[tox]
envlist = pep8
[testenv]
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py develop
[testenv:pep8]
basepython = python
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
max-line-length = 100
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build