buku/tox.ini
Andrew Szeto efe7b59da7
Update tox.ini to work locally
The `tox.ini` file had a few updates to get it working again:

- We can delete the commented lines, because they have already been kept inside of the Git history.
- tox does not support pipe characters in commands (https://bitbucket.org/hpk42/tox/issues/73), so we use `find -exec` and remove `xargs`
- We ignore the `.tox` directory for linting to avoid catching a bunch of imported code.
2019-02-22 18:46:37 -08:00

36 lines
978 B
INI

[tox]
envlist = python33,python34,python35,python36
[flake8]
max-line-length = 139
ignore =
# C901 func is too complex
C901,
# E126 continuation line over-indented for hanging indent
E126,
# E127 continuation line over-indented for visual indent
E127,
# E226 missing whitespace around arithmetic operator
E226,
# E231 missing whitespace after ','
E231,
# E302 expected 2 blank lines, found 1
E302,
# E305 expected 2 blank lines after class or function definition, found 1
E305,
# E731 do not assign a lambda expression, use a def
E731,
# W292 no newline at end of file
W292,
# W504 line break after binary operator
W504,
[testenv]
commands =
pip install -e .[tests]
pip install -r requirements.txt
python -m flake8
pylint --rcfile tests/.pylintrc buku
find . -iname "*.py" -not -path "./.tox/*" -exec pylint --rcfile tests/.pylintrc \{\} +
pytest --cov buku -vv {posargs}