<commit_before>[tox]
envlist = clean,py{37,38,39,310}-{linux,macos,windows},py,pypy3,type,lint,docs
isolated_build = True

[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3

[testenv]
whitelist_externals = poetry
deps =
    deprecated
    coverage[toml]
    pytest
    pytest-cov
    pexpect
    pyte
    windows-curses;sys_platform=='win32'
commands =
    poetry install -v
    poetry run pytest -vv --cov --cov-append --cov-report=term-missing --cov-report=xml --cov-fail-under=100 --no-cov-on-fail
    coverage lcov
platform = linux: linux
           macos: darwin
           windows: win32
setenv =
    PYTHONWARNINGS=all
    TERM=xterm-256color
    COVERAGE_RCFILE = {envtmpdir}/coveragerc

commands_pre =
    {envpython} ./scripts/make_coverage_rc.py

[testenv:type]
deps =
    mypy
    types-Deprecated
commands =
    mypy --strict cursesmenu

basepython = python3.10
[testenv:lint]
deps =
    flake8
commands =
    flake8 cursesmenu
    flake8 test
basepython = python3.10


[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.10
deps = sphinx >= 5.1.1, < 6
       sphinx-autodoc-typehints >= 1.19.0, < 2
       sphinx-rtd-theme >= 1.0.0, < 2
       deprecated
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
           python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'

[testenv:clean]
deps = coverage[toml]
skip_install = true
commands = coverage erase<commit_msg>Update mypy command in tox ini<commit_after>[tox]
envlist = clean,py{37,38,39,310}-{linux,macos,windows},py,pypy3,type,lint,docs
isolated_build = True

[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3

[testenv]
whitelist_externals = poetry
deps =
    deprecated
    coverage[toml]
    pytest
    pytest-cov
    pexpect
    pyte
    windows-curses;sys_platform=='win32'
commands =
    poetry install -v
    poetry run pytest -vv --cov --cov-append --cov-report=term-missing --cov-report=xml --cov-fail-under=100 --no-cov-on-fail
    coverage lcov
platform = linux: linux
           macos: darwin
           windows: win32
setenv =
    PYTHONWARNINGS=all
    TERM=xterm-256color
    COVERAGE_RCFILE = {envtmpdir}/coveragerc

commands_pre =
    {envpython} ./scripts/make_coverage_rc.py

[testenv:type]
deps =
    mypy
    types-Deprecated
    pytest
commands =
    mypy .

basepython = python3.10
[testenv:lint]
deps =
    flake8
commands =
    flake8 cursesmenu
    flake8 test
basepython = python3.10


[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.10
deps = sphinx >= 5.1.1, < 6
       sphinx-autodoc-typehints >= 1.19.0, < 2
       sphinx-rtd-theme >= 1.0.0, < 2
       deprecated
commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
           python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'

[testenv:clean]
deps = coverage[toml]
skip_install = true
commands = coverage erase
{'fraction_non_alphanumeric': 0.11026936026936027, 'fraction_numerical': 0.026936026936026935, 'mean_word_length': 3.3958076448828605, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '991508', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1229, 'n_words': 317}