[tox]
skip_missing_interpreters = True

[testenv]
skip_install = True
deps =
    pytest
    pytest-flake8
commands =
    pytest --flake8

[testenv:py36]
skip_install = True
deps =
    black==19.10b0
    pytest
    pytest-flake8
commands =
    black --diff --check py3status/
    black --diff --check setup.py fastentrypoints.py
    black --diff --check tests/
    pytest --flake8

[pytest]
# see .flake8 file in the black project:
# https://github.com/ambv/black/blob/master/.flake8
flake8-ignore =
    C901
    E203
    E266
    E501
    W503
    py3status/modules/*.py W605 W504
flake8-select = F
flake8-max-complexity = 18
flake8-max-line-length = 88
