<commit_before>[tox]
envlist = py{26,27,34,py,py3}, docs, style


[testenv]
changedir = {envtmpdir}
commands =
    green [] {toxinidir}/jsonschema
    {envpython} -m doctest {toxinidir}/README.rst
    py{26,27,34}: sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
deps =
    green

    -e{toxinidir}[format]

    py26: unittest2
    py{26,27,py,py3}: mock

    py{26,27,34}: lxml
    pypy: git+https://github.com/amauryfa/lxml.git@cffi
    py{26,27,34,py}: sphinx


[testenv:coverage]
commands =
    coverage run --branch --source {toxinidir}/jsonschema [] {envbindir}/green {toxinidir}/jsonschema
    coverage report --show-missing
    coverage html
deps =
    coverage


[testenv:docs]
basepython = python
changedir = docs
deps =
    -r{toxinidir}/docs/doc-requirements.txt
commands =
    sphinx-build [] -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html


[testenv:style]
deps = flake8
commands =
    flake8 [] --max-complexity 10 {toxinidir}/jsonschema


[flake8]
ignore = E203,E302,E303,E701,F811
<commit_msg>Really run on the installed package.<commit_after>[tox]
envlist = py{26,27,34,py,py3}, docs, style


[testenv]
changedir = {envtmpdir}
setenv =
    JSON_SCHEMA_TEST_SUITE = {toxinidir}/json
commands =
    green [] jsonschema
    {envpython} -m doctest {toxinidir}/README.rst
    py{26,27,34}: sphinx-build -b doctest {toxinidir}/docs {envtmpdir}/html
deps =
    green

    -e{toxinidir}[format]

    py26: unittest2
    py{26,27,py,py3}: mock

    py{26,27,34}: lxml
    pypy: git+https://github.com/amauryfa/lxml.git@cffi
    py{26,27,34,py}: sphinx


[testenv:coverage]
commands =
    coverage run --branch --source {toxinidir}/jsonschema [] {envbindir}/green jsonschema
    coverage report --show-missing
    coverage html
deps =
    coverage


[testenv:docs]
basepython = python
changedir = docs
deps =
    -r{toxinidir}/docs/doc-requirements.txt
commands =
    sphinx-build [] -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html


[testenv:style]
deps = flake8
commands =
    flake8 [] --max-complexity 10 {toxinidir}/jsonschema


[flake8]
ignore = E203,E302,E303,E701,F811

{'fraction_non_alphanumeric': 0.1413662239089184, 'fraction_numerical': 0.05028462998102467, 'mean_word_length': 3.7181208053691277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1603578', 'n_tokens_mistral': 934, 'n_tokens_neox': 847, 'n_words': 160}