<commit_before>[tox]
envlist = py37

[testenv]
# ignore_errors makes sure all commands get run, which means this won't abort if flake8 fails.
# it doesn't affect the return code in the end.
ignore_errors=True
setenv =
    PYTHONDONTWRITEBYTECODE=1
deps = -rrequirements-test.txt
commands=
    flake8 api-tests auslib *.py scripts uwsgi
    py.test -n auto --cov {posargs:auslib}
    coverage run -a scripts/test-rules.py

[flake8]
max-line-length = 160
exclude = .ropeproject,.tox,sandbox,build
show-source = True
# Black formats some of our code in a way that causes E203. Meh.
# W503 is a default ignore, but gets overridden when we set this, so we need
# to add it again ourselves.
ignore = E203,W503
<commit_msg>Update comment about black and flake8 disagreement. (#926)<commit_after>[tox]
envlist = py37

[testenv]
# ignore_errors makes sure all commands get run, which means this won't abort if flake8 fails.
# it doesn't affect the return code in the end.
ignore_errors=True
setenv =
    PYTHONDONTWRITEBYTECODE=1
deps = -rrequirements-test.txt
commands=
    flake8 api-tests auslib *.py scripts uwsgi
    py.test -n auto --cov {posargs:auslib}
    coverage run -a scripts/test-rules.py

[flake8]
max-line-length = 160
exclude = .ropeproject,.tox,sandbox,build
show-source = True
# flake8 doesn't differentiat the use of `:` in dictionaries vs. slices,
# whereas # black formats the a later with surrounding whitespace. This causes
# flake8 to incorrecly report E203.
# See https://black.readthedocs.io/en/stable/the_black_code_style.html#slices
# W503 is a default ignore, but gets overridden when we set this, so we need
# to add it again ourselves.
ignore = E203,W503

{'fraction_non_alphanumeric': 0.08581644815256258, 'fraction_numerical': 0.028605482717520857, 'mean_word_length': 4.1503067484662575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1279973', 'n_tokens_mistral': 595, 'n_tokens_neox': 547, 'n_words': 204}