<commit_before>[tox]
envlist = pre-commit,lint,{py27,py34,py35,py36,pypy,pypy3}{-twisted,},manifest,docs,readme,coverage-report


[testenv:pre-commit]
skip_install = true
basepython = python3.6
deps = pre-commit
passenv = HOMEPATH  # needed on Windows
commands = pre-commit run --all-files --verbose


[testenv]
extras = tests
deps =
    {py27,py34,py36,pypy}-twisted: twisted[tls]
commands =
    {py27,py36}{-twisted,}: coverage run --parallel -m pytest {posargs}
    {py34,py35,pypy,pypy3}{-twisted,}: python -m pytest {posargs}


[testenv:lint]
skip_install = true
basepython = python3.6
extras = tests
deps =
    flake8
    flake8-isort
    flake8-mypy
    black
commands =
    flake8 src tests setup.py conftest.py docs/conf.py
    black --check --verbose setup.py conftest.py src tests docs/conf.py


[testenv:manifest]
basepython = python3.6
deps = check-manifest
commands = check-manifest


[testenv:docs]
basepython = python3.6
extras = docs
deps =
     twisted[tls]
commands =
    sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
    sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html


[testenv:readme]
basepython = python3.6
deps = readme-renderer
commands = python setup.py check -r -s

<commit_msg>Use mypy proper<commit_after>[tox]
envlist = pre-commit,lint,{py27,py34,py35,py36,pypy,pypy3}{-twisted,},manifest,docs,readme,coverage-report


[testenv:pre-commit]
skip_install = true
basepython = python3.6
deps = pre-commit
passenv = HOMEPATH  # needed on Windows
commands = pre-commit run --all-files --verbose


[testenv]
extras = tests
deps =
    {py27,py34,py36,pypy}-twisted: twisted[tls]
commands =
    {py27,py36}{-twisted,}: coverage run --parallel -m pytest {posargs}
    {py34,py35,pypy,pypy3}{-twisted,}: python -m pytest {posargs}


[testenv:lint]
skip_install = true
basepython = python3.6
extras = tests
deps =
    flake8
    flake8-isort
    black
    mypy
commands =
    flake8 src tests setup.py conftest.py docs/conf.py
    black --check --verbose setup.py conftest.py src tests docs/conf.py
    mypy src


[testenv:manifest]
basepython = python3.6
deps = check-manifest
commands = check-manifest


[testenv:docs]
basepython = python3.6
extras = docs
deps =
     twisted[tls]
commands =
    sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
    sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html


[testenv:readme]
basepython = python3.6
deps = readme-renderer
commands = python setup.py check -r -s


{'fraction_non_alphanumeric': 0.12192216044479746, 'fraction_numerical': 0.029785544082605243, 'mean_word_length': 3.9007782101167314, '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': '5224305', 'n_tokens_mistral': 1012, 'n_tokens_neox': 949, 'n_words': 220}