12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- [tox]
- envlist = py27,py34,py35,py36,cov-report,cov-store
- [testenv]
- use_develop = true
- deps =
- py27: mock==2.0.0
- -r{toxinidir}/requirements-test.txt
- setenv =
- COVERAGE_FILE = tests/.coverage.{envname}
- PYTHONDONTWRITEBYTECODE=1
- commands =
- coverage run -m pytest {toxinidir}/tests {toxinidir}/flaskbb
- [testenv:cov-report]
- skip_install = true
- setenv =
- COVERAGE_FILE = tests/.coverage
- deps =
- -r{toxinidir}/requirements-cov.txt
- commands =
- coverage combine tests
- coverage report
- [testenv:cov-store]
- skip_install = true
- setenv =
- COVERAGE_FILE = tests/.coverage
- deps =
- -r{toxinidir}/requirements-cov.txt
- commands =
- coverage html
- [flake8]
- ignore = E712, E711, C901
- max-complexity = 10
- max-line-length = 80
- exclude = flaskbb/configs/default.py,flaskbb/_compat.py
- [pytest]
- addopts = -vvl --strict --flake8 --capture fd
|