<commit_before>[tox]
envlist = py27, pypy, flake8, py34, py35, py36, py37, py38, py39, docs
skip_missing_interpreters = True

[testenv]
basepython =
    py27: python2.7
    py34: python3.4
    py35: python3.5
    py36: python3.6
    py37: python3.7
    py38: python3.8
    py39: python3.9
    pypy: pypy

deps = -r{toxinidir}/mt940_tests/requirements.txt
commands = py.test --basetemp="{envtmpdir}" {posargs}

[testenv:flake8]
basepython = python2.7
commands = flake8 --ignore=W391 mt940 mt940_tests {posargs}
deps = flake8

[testenv:docs]
basepython = python2.7
whitelist_externals =
    rm
    cd
    mkdir
commands =
	rm -f docs/project_name.rst
	rm -f docs/modules.rst
	mkdir -p docs/_static
	sphinx-apidoc -o docs/ mt940
    sphinx-build -W -b html -d docs/doctrees docs docs/html {posargs}<commit_msg>Updated tox configuration to be more modern<commit_after>[tox]
envlist = flake8, py37, py38, py39, py310, docs
skip_missing_interpreters = True

[testenv]
basepython =
    py37: python3.7
    py38: python3.8
    py39: python3.9
    py310: python3.10

deps = -r{toxinidir}/mt940_tests/requirements.txt
commands = py.test --basetemp="{envtmpdir}" {posargs}

[testenv:flake8]
basepython = python3
commands = flake8 --ignore=W391 mt940 mt940_tests {posargs}
deps = flake8

[testenv:docs]
basepython = python3
whitelist_externals =
    rm
    cd
    mkdir
commands =
	rm -f docs/project_name.rst
	rm -f docs/modules.rst
	mkdir -p docs/_static
	sphinx-apidoc -o docs/ mt940
    sphinx-build -W -b html -d docs/doctrees docs docs/html {posargs}
{'fraction_non_alphanumeric': 0.10816062176165803, 'fraction_numerical': 0.07318652849740932, 'mean_word_length': 3.625748502994012, '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': '268354', 'n_tokens_mistral': 696, 'n_tokens_neox': 612, 'n_words': 151}