<commit_before>[tox]
envlist = py27,py34,js,docs
skip_missing_interpreters = True
skipsdist = True

[testenv]
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test_requirements.txt
commands = py.test {posargs}
passenv = *
setenv =
    CELERY_ALWAYS_EAGER=True
    HAYSTACK_INDEX=testindex
    LORE_DB_DISABLE_SSL=True

[testenv:docs]
basepython = python2.7
changedir = docs

deps=
    -r{toxinidir}/doc_requirements.txt
commands=
    sphinx-build -W -b html -d {envtmpdir}/doctrees .  {toxinidir}/docs/_build

[testenv:js]
commands =
    npm install --prefix {toxinidir}
    {toxinidir}/node_modules/.bin/jshint ui/static/ui/js ui/jstests/
    {toxinidir}/node_modules/.bin/jsxhint 'ui/**/*.jsx' --jsx-only
    {toxinidir}/node_modules/.bin/jscs ui/static/ui/js ui/jstests/
    {toxinidir}/node_modules/.bin/karma start {posargs}
    {toxinidir}/util/convert_lcov_to_coveralls.js {toxinidir}/coverage/coverage-js.lcov {toxinidir}/coverage/coverage-js.json
    cat {toxinidir}/coverage/text-summary.txt

whitelist_externals =
    */karma
    npm
    js
    cat
deps = <commit_msg>Fixed jsxhint to focus on our files<commit_after>[tox]
envlist = py27,py34,js,docs
skip_missing_interpreters = True
skipsdist = True

[testenv]
deps =
    -r{toxinidir}/requirements.txt
    -r{toxinidir}/test_requirements.txt
commands = py.test {posargs}
passenv = *
setenv =
    CELERY_ALWAYS_EAGER=True
    HAYSTACK_INDEX=testindex
    LORE_DB_DISABLE_SSL=True

[testenv:docs]
basepython = python2.7
changedir = docs

deps=
    -r{toxinidir}/doc_requirements.txt
commands=
    sphinx-build -W -b html -d {envtmpdir}/doctrees .  {toxinidir}/docs/_build

[testenv:js]
commands =
    npm install --prefix {toxinidir}
    {toxinidir}/node_modules/.bin/jshint ui/static/ui/js ui/jstests/
    {toxinidir}/node_modules/.bin/jsxhint 'ui/static/ui/js/**/*.jsx' 'ui/jstests/**/*.jsx' --jsx-only
    {toxinidir}/node_modules/.bin/jscs ui/static/ui/js ui/jstests/
    {toxinidir}/node_modules/.bin/karma start {posargs}
    {toxinidir}/util/convert_lcov_to_coveralls.js {toxinidir}/coverage/coverage-js.lcov {toxinidir}/coverage/coverage-js.json
    cat {toxinidir}/coverage/text-summary.txt

whitelist_externals =
    */karma
    npm
    js
    cat
deps = 
{'fraction_non_alphanumeric': 0.1314260169870362, 'fraction_numerical': 0.005364327223960662, 'mean_word_length': 3.833693304535637, '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': '4562702', 'n_tokens_mistral': 958, 'n_tokens_neox': 915, 'n_words': 133}