<commit_before># Tox (http://tox.testrun.org/) is a tool for running tests
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27, py35, py36, docs
# trick to enable pre-installation of numpy and cython
indexserver =
    preinstall = https://pypi.python.org/simple

[testenv]
install_command = pip install -U -v --no-cache-dir {opts} {packages}
setenv =
    C_INCLUDE_PATH = /usr/lib/openmpi/include
    PYTHONHASHSEED = 42
commands =
    python setup.py build_ext --inplace
    py27,py36: nosetests -v allel
    py35: nosetests -v --with-doctest --doctest-options +NORMALIZE_WHITESPACE,+ELLIPSIS allel
    py35: flake8 allel
deps =
    :preinstall: setuptools
    :preinstall: cython==0.25.2
    :preinstall: numpy==1.12
    -rrequirements_ci.txt

[testenv:docs]
install_command = pip install -U -v --no-cache-dir {opts} {packages}
basepython = python2.7
deps = -rrequirements_rtfd.txt
commands =
    python setup.py install
    sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html<commit_msg>increase line length for flake8<commit_after># Tox (http://tox.testrun.org/) is a tool for running tests
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27, py35, py36, docs
# trick to enable pre-installation of numpy and cython
indexserver =
    preinstall = https://pypi.python.org/simple

[testenv]
install_command = pip install -U -v --no-cache-dir {opts} {packages}
setenv =
    C_INCLUDE_PATH = /usr/lib/openmpi/include
    PYTHONHASHSEED = 42
commands =
    python setup.py build_ext --inplace
    py27,py36: nosetests -v allel
    py35: nosetests -v --with-doctest --doctest-options +NORMALIZE_WHITESPACE,+ELLIPSIS allel
    py35: flake8 allel --max-line-length=100
deps =
    :preinstall: setuptools
    :preinstall: cython==0.25.2
    :preinstall: numpy==1.12
    -rrequirements_ci.txt

[testenv:docs]
install_command = pip install -U -v --no-cache-dir {opts} {packages}
basepython = python2.7
deps = -rrequirements_rtfd.txt
commands =
    python setup.py install
    sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
{'fraction_non_alphanumeric': 0.11008064516129032, 'fraction_numerical': 0.02258064516129032, 'mean_word_length': 3.646067415730337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6373358', 'n_tokens_mistral': 913, 'n_tokens_neox': 859, 'n_words': 262}