atmosphere/tox.ini
okozachenko ebbb899953 Fix pylinters
Change-Id: I3b17d87f821cadab39b9bf4e82043e79f20456ef
2020-06-17 20:44:49 +03:00

40 lines
852 B
INI

[tox]
skipsdist = True
[testenv]
envdir = {toxworkdir}/shared
usedevelop = True
setenv =
FLASK_APP=atmosphere.app
passenv =
DATABASE_URI
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
pytest --cov-report term-missing \
--cov-report term:skip-covered \
--cov=atmosphere
[testenv:venv]
commands = {posargs}
[testenv:linters]
commands =
pylint atmosphere \
--load-plugins pylint_flask,pylint_flask_sqlalchemy \
--ignore migrations,tests
flake8 atmosphere \
--exclude .tox,atmosphere/migrations,atmosphere/tests
[testenv:docs]
deps =
-r{toxinidir}/doc/requirements.txt
commands =
doc8 doc
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
[pytest]
filterwarnings =
ignore::DeprecationWarning