<commit_before>[tox]
envlist = py35,py36,py37,py38

[testenv]
deps =
    -rrequirements.txt
    -roptional-requirements.txt
    -rdev-requirements.txt
commands =
    # NOTE: you can run any command line tool here - not just tests
    pytest {posargs}

# run with tox -e flake
[testenv:flake]
deps =
    -rrequirements.txt
    -roptional-requirements.txt
    -rdev-requirements.txt
    flake8
commands =
    # stop the build if there are Python syntax errors or undefined names
    flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
    # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
    flake8 . --count --exit-zero --exclude telethon/tl/,telethon/errors/rpcerrorlist.py --max-complexity=10 --max-line-length=127 --statistics<commit_msg>Exclude telethon_examples/ from flake8<commit_after>[tox]
envlist = py35,py36,py37,py38

[testenv]
deps =
    -rrequirements.txt
    -roptional-requirements.txt
    -rdev-requirements.txt
commands =
    # NOTE: you can run any command line tool here - not just tests
    pytest {posargs}

# run with tox -e flake
[testenv:flake]
deps =
    -rrequirements.txt
    -roptional-requirements.txt
    -rdev-requirements.txt
    flake8
commands =
    # stop the build if there are Python syntax errors or undefined names
    flake8 . --count --select=E9,F63,F7,F82 --exclude telethon_examples/ --show-source --statistics
    # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
    flake8 . --count --exit-zero --exclude telethon/tl/,telethon_examples/,telethon/errors/rpcerrorlist.py --max-complexity=10 --max-line-length=127 --statistics
{'fraction_non_alphanumeric': 0.10590383444917834, 'fraction_numerical': 0.0310407790626902, 'mean_word_length': 3.20460358056266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2900744', 'n_tokens_mistral': 581, 'n_tokens_neox': 546, 'n_words': 150}