buku/tox.ini

36 lines
978 B
INI
Raw Normal View History

[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,
2018-10-25 08:14:46 -05:00
# W504 line break after binary operator
W504,
[testenv]
commands =
Feature/test print (#137) * new: test: test for delete_rec (#132) * chg: dev: add db instance for delay_commit check * chg: dev: remove unused delete_rec test * chg: test: not check delay commit on empty db test. * chg: test: use simpler precise test for delete_rec * fix: test: change pytest parametrize arg * fix: test: fix instance of BukuDb * fix: test: fix test. * fix: test: logic on expected db len * new: test: test for delete_rec * new: test: test for delete_rec on empty database * Needs timely commitment. Removing the base implementation for rest APIs. At this point I believe it will Be better handled by someone who needs it. The current contributions in this area are very very infrequent. Defects and PRs remain pen over fortnights. It's difficult to expect the same team to maintain the piece of code even if we ever receive the full implementation from them. * Roll ToDo list * Feature/delete rec additional test data set (#133) * new: test: additional data test set. * new: test: test on non integer. * chg: test: rename function for consistency. * chg: test: change normalize function. * chg: test: change max value for high var * fix: test: use normalized index * fix: test: remove 'max' as valid value * chg: test: use hypothesis to test delete_rec index * new: test: add hypothesis package * chg: test: use hypothesis to test delete_rec index * chg: test: add hypothesis to travis * chg: test: limit integer test. * chg: dev: remove unused test * fix: test: fix test on non integer. * new: test: add big integer test on range in delete_rec method. * fix: test: fix high low diff * fix: test: skip only for python<3.5 * chg: test: change test_delete_rec_range_and_big_int - remove skip - use constant value instead sys.maxsize - fix assert * chg: test: use setup.py to manage test package instead travis * chg: test: add tests extras on setup.py * chg: test: change install test package. * fix: test: fix whitespace * fix: test: MAX_SQLITE_INT value * chg: test: skip test for python<3.5 * fix: test: fix import * chg: test: skip Impossible test * chg: test: simplify test_delete_rec_on_non_interger * Feature/tox test (#138) * chg: test: mark slow test * new: test: config for tox * chg: test: mark function as non tox * new: test: test print_rec with hypothesis * chg: test: simplify test for print_single_rec * fix: test: fix index test on test_print_rec_hypothesis * fix: test: fix tox setting. * fix: test: change test_print_single_rec to python3.5 only
2017-03-28 11:30:12 -05:00
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}