[tox] envlist = pypy,py27,py34,py35,py36,py37,py38,lint,docs [testenv] whitelist_externals = git commands = python setup.py test [testenv:blacken] deps = black commands = black --target-version=py27 \ elasticsearch/ \ test_elasticsearch/ \ setup.py python utils/license_headers.py fix \ elasticsearch/ \ test_elasticsearch/ \ utils \ docs \ setup.py [testenv:lint] deps = flake8 black commands = black --target-version=py27 --check \ elasticsearch/ \ test_elasticsearch/ \ setup.py flake8 \ elasticsearch/ \ test_elasticsearch/ \ utils \ docs \ setup.py python utils/license_headers.py check \ elasticsearch/ \ test_elasticsearch/ \ utils \ docs \ setup.py [testenv:docs] deps = sphinx sphinx-rtd-theme commands = sphinx-build docs/ docs/_build -b html