2017-03-28 07:18:32 -05:00
|
|
|
[tox]
|
2020-12-21 14:43:34 -06:00
|
|
|
envlist = python36,python37,python38,python39,pylint,flake8
|
2017-09-02 07:11:52 -05:00
|
|
|
|
|
|
|
[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,
|
2018-10-25 08:14:46 -05:00
|
|
|
# W504 line break after binary operator
|
|
|
|
W504,
|
2017-03-28 07:18:32 -05:00
|
|
|
|
|
|
|
[testenv]
|
2019-12-06 21:06:29 -06:00
|
|
|
usedevelop = true
|
|
|
|
deps = pytest
|
|
|
|
|
|
|
|
[testenv:python35]
|
|
|
|
extras = tests
|
|
|
|
commands =
|
|
|
|
pytest --cov buku -vv -m "not non_tox" {posargs}
|
|
|
|
|
|
|
|
[testenv:python36]
|
|
|
|
extras = tests
|
|
|
|
commands =
|
|
|
|
pytest --cov buku -vv -m "not non_tox" {posargs}
|
|
|
|
|
|
|
|
[testenv:python37]
|
|
|
|
extras = tests
|
|
|
|
commands =
|
|
|
|
pytest --cov buku -vv -m "not non_tox" {posargs}
|
|
|
|
|
|
|
|
[testenv:python38]
|
|
|
|
extras = tests
|
|
|
|
commands =
|
|
|
|
pytest --cov buku -vv -m "not non_tox" {posargs}
|
|
|
|
|
|
|
|
[testenv:pylint]
|
|
|
|
deps = pylint
|
2020-10-10 03:27:29 -05:00
|
|
|
whitelist_externals =
|
2019-12-06 21:06:29 -06:00
|
|
|
/usr/bin/find
|
2017-03-28 07:18:32 -05:00
|
|
|
commands =
|
2019-02-22 21:54:56 -06:00
|
|
|
find . -iname "*.py" -not -path "./.tox/*" -not -path "./build/*" -exec pylint --rcfile tests/.pylintrc \{\} +
|
2019-12-06 21:06:29 -06:00
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
deps = flake8
|
|
|
|
commands =
|
|
|
|
python -m flake8
|