[tox]
envlist = py{36,37,38,39}

[flake8]
extend-exclude = build,examples/issue_*.py
ignore = E741,F401,W503,E402,E501,E731,E713,E203,W291,W293
per-file-ignores =
    locust/test/*: F841
    examples/*: F841

[testenv]
deps =
    codecov
    flake8
    mock
    pyquery
    cryptography
    black
commands =
    flake8 . --count --show-source --statistics
    coverage run -m unittest discover []
    black --check .

[tox]
envlist = py{36,37,38,39}

[flake8]
extend-exclude = build,examples/issue_*.py
ignore = E741,F401,W503,E402,E501,E731,E713,E203
per-file-ignores =
    locust/test/*: F841
    examples/*: F841

[testenv]
deps =
    codecov
    flake8
    mock
    pyquery
    cryptography
    black
commands =
    flake8 . --count --show-source --statistics
    coverage run -m unittest discover []
    black --check .

Revert "Allow trailing whitespace, since Flake8 complains about trailing whitespace in strings and docstrings. Trailing whitespace in code will be catched by the black check anyway."
Revert "Allow trailing whitespace, since Flake8 complains about trailing whitespace in strings and docstrings. Trailing whitespace in code will be catched by the black check anyway."

This reverts commit 0474556c327e4d54e11073f7ed7d406e6fbf57a1.

On second thoughts, the error output from black will be much worse, so it should be better to keep it.
