<commit_before>; a generative tox configuration, see: https://testrun.org/tox/latest/config.html#generative-envlist
; most of this came from https://github.com/ionelmc/cookiecutter-pylibrary

[tox]
envlist =
    clean,
    check,
    {py27,py33,py34,py35,pypy}-notebook{,40,41,42,4x},
    ; report,
    ; docs

[testenv]
basepython =
    pypy: {env:TOXPYTHON:pypy}
    {py27,docs,spell}: {env:TOXPYTHON:python2.7}
    py33: {env:TOXPYTHON:python3.3}
    py34: {env:TOXPYTHON:python3.4}
    py35: {env:TOXPYTHON:python3.5}
    {js,clean,check,report,coveralls,codecov}: python3.4
setenv =
    PYTHONPATH={toxinidir}/tests
    PYTHONUNBUFFERED=yes
passenv =
    *
usedevelop = false
deps =
    coverage
    mock
    nose
    notebook: notebook>=4.0,<5.0
    notebook40: notebook>=4.0,<4.1
    notebook41: notebook>=4.1,<4.2
    notebook42: notebook>=4.2,<4.3
    notebook4x: https://github.com/jupyter/notebook/archive/4.x.zip
    requests
commands =
    themysto install
    {posargs:nosetests --with-coverage --cover-package=src tests}

[testenv:js]
commands =
    python -m themysto.install
    {posargs:python -m themysto.jstest}

[testenv:check]
skip_install = true
deps =
    check-manifest
    docutils
    flake8
    isort
    pygments
    readme-renderer
commands =
    python setup.py check --strict --metadata --restructuredtext
    check-manifest {toxinidir}
    flake8 src tests setup.py
    isort --verbose --check-only --diff --recursive src tests setup.py<commit_msg>fix js to env to use new installation mechanism<commit_after>; a generative tox configuration, see: https://testrun.org/tox/latest/config.html#generative-envlist
; most of this came from https://github.com/ionelmc/cookiecutter-pylibrary

[tox]
envlist =
    clean,
    check,
    {py27,py33,py34,py35,pypy}-notebook{,40,41,42,4x},
    ; report,
    ; docs

[testenv]
basepython =
    pypy: {env:TOXPYTHON:pypy}
    {py27,docs,spell}: {env:TOXPYTHON:python2.7}
    py33: {env:TOXPYTHON:python3.3}
    py34: {env:TOXPYTHON:python3.4}
    py35: {env:TOXPYTHON:python3.5}
    {js,clean,check,report,coveralls,codecov}: python3.4
setenv =
    PYTHONPATH={toxinidir}/tests
    PYTHONUNBUFFERED=yes
passenv =
    *
usedevelop = false
deps =
    coverage
    mock
    nose
    notebook: notebook>=4.0,<5.0
    notebook40: notebook>=4.0,<4.1
    notebook41: notebook>=4.1,<4.2
    notebook42: notebook>=4.2,<4.3
    notebook4x: https://github.com/jupyter/notebook/archive/4.x.zip
    requests
commands =
    themysto install
    {posargs:nosetests --with-coverage --cover-package=src tests}

[testenv:js]
commands =
    themysto install
    {posargs:python -m themysto.jstest}

[testenv:check]
skip_install = true
deps =
    check-manifest
    docutils
    flake8
    isort
    pygments
    readme-renderer
commands =
    python setup.py check --strict --metadata --restructuredtext
    check-manifest {toxinidir}
    flake8 src tests setup.py
    isort --verbose --check-only --diff --recursive src tests setup.py
{'fraction_non_alphanumeric': 0.12726054922973878, 'fraction_numerical': 0.03951774949765573, 'mean_word_length': 3.405604719764012, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 6, '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': '1227939', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1150, 'n_words': 208}