<commit_before>[tox]
envlist = py{36,37,38,39,310}

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

[testenv]
deps =
    codecov
    flake8
    mock
    retry
    pyquery
    cryptography
    black==22.1.0
    mypy
allowlist_externals =
    bash
    timeout
    grep
commands =
    flake8 . --count --show-source --statistics
    coverage run -m unittest discover []
    black --check .
    mypy locust/
    bash -ec 'PYTHONUNBUFFERED=1 timeout 2s python3 examples/debugging.py >out.txt 2>err.txt || true'
    grep -m 1 '/hello' out.txt
    bash -ec '! grep . err.txt' # should be empty
    bash -ec 'PYTHONUNBUFFERED=1 python3 examples/debugging_advanced.py | grep done'

<commit_msg>Bump black version to 22.3.0<commit_after>[tox]
envlist = py{36,37,38,39,310}

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

[testenv]
deps =
    codecov
    flake8
    mock
    retry
    pyquery
    cryptography
    black==22.3.0
    mypy
allowlist_externals =
    bash
    timeout
    grep
commands =
    flake8 . --count --show-source --statistics
    coverage run -m unittest discover []
    black --check .
    mypy locust/
    bash -ec 'PYTHONUNBUFFERED=1 timeout 2s python3 examples/debugging.py >out.txt 2>err.txt || true'
    grep -m 1 '/hello' out.txt
    bash -ec '! grep . err.txt' # should be empty
    bash -ec 'PYTHONUNBUFFERED=1 python3 examples/debugging_advanced.py | grep done'


{'fraction_non_alphanumeric': 0.11764705882352941, 'fraction_numerical': 0.0677361853832442, 'mean_word_length': 2.8891454965357966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '26956', 'n_tokens_mistral': 722, 'n_tokens_neox': 640, 'n_words': 144}