[testenv]
basepython = python3

[testenv:style]
deps =
    flake8
    isort
    unify
    black
changedir = {toxinidir}
commands =
    black feincms3 tests
    flake8 .
    isort --check-only --recursive --diff feincms3 tests
    unify --check-only --recursive --quote '"' feincms3 tests
skip_install = true

[testenv:docs]
deps =
    Sphinx
    Django
    django-ckeditor
    django-content-editor
    django-cte-forest
    django-imagefield
    html-sanitizer
    requests
changedir = docs
commands = make html
skip_install = true
whitelist_externals = make

[testenv:tests]
deps =
    Django
    django-ckeditor
    django-content-editor
    django-cte-forest
    django-imagefield
    html-sanitizer
    requests
    psycopg2-binary
    pytz
    coverage
changedir = {toxinidir}
skip_install = true
commands =
    coverage run tests/manage.py test -v 2 testapp
    coverage html

[testenv]
basepython = python3

[testenv:style]
deps =
    flake8
    isort
    unify
    black
changedir = {toxinidir}
commands =
    black feincms3 tests
    flake8 .
    isort --check-only --recursive --diff feincms3 tests
    unify --check-only --recursive --quote '"' feincms3 tests
skip_install = true

[testenv:docs]
deps =
    Sphinx
    Django
    django-ckeditor
    django-content-editor
    django-cte-forest
    django-imagefield
    html-sanitizer
    requests
changedir = docs
commands = make html
skip_install = true
whitelist_externals = make

[testenv:tests]
deps =
    Django
    django-ckeditor
    django-content-editor
    django-cte-forest
    django-imagefield
    html-sanitizer
    requests
    psycopg2-binary
    pytz
    coverage
changedir = {toxinidir}
skip_install = true
commands =
    coverage run tests/manage.py test -v 2 {posargs:testapp}
    coverage html

Allow positional args when running the tests
Allow positional args when running the tests
