1
0
mirror of https://github.com/ansible/mazer.git synced 2026-02-05 12:45:17 +01:00
Files
mazer/tox.ini

47 lines
1.1 KiB
INI
Raw Permalink Normal View History

[tox]
2019-05-15 14:46:53 -04:00
envlist = py27, py36, py37, flake8
[travis]
python =
2019-05-15 14:46:53 -04:00
3.7: py37
3.6: py36
2.7: py27
[testenv:flake8]
basepython = python
deps = flake8
pip
commands = flake8 ansible_galaxy_cli ansible_galaxy
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
commands = py.test --basetemp={envtmpdir}
[flake8]
max-line-length = 160
# ignore the stuff borrowed from ansible/ansible for now
[pytest]
# addopts = --full-trace
# captured logs will be show for failed tests by default.
# To also see captured logs for passing tests, try: pytest --log-level=DEBUG -r fEsxXpP
# default log_format = %(asctime)s %(levelname)s %(message)s
log_format = [%(asctime)s %(levelname)-0.1s] %(name)s %(filename)s %(funcName)s:%(lineno)d - %(message)s
# pytest defaults date_format="%H:%M:%S" to use logging default (asctime) we need to unset log_date_format
log_date_format =
[coverage:run]
branch = True
source = ansible_galaxy, ansible_galaxy_cli
omit =
# stuff from ansible/ansible that we use but dont have our own tests for
ansible_galaxy/utils/text.py