<commit_before>[tox]
envlist=py3, docs, report
skip_install=true
skipsdist=true

[testenv:py3]
# Deps needed for code testing (actual deps are in setup.py)
deps=
    coverage
    coveralls
    pycodestyle
    pylint
commands=
    ## Comands fail 'fast' so later commands won't run if any earlier one fails
    # Install 'local' pyramid_jsonapi
    pip install -e .
    # Install deps for test_project
    pip install -e test_project
    # pylint --errors-only --rcfile=.pylintrc pyramid_jsonapi
    # pycodestyle --ignore=E402,E501,W503,W504,E731 pyramid_jsonapi
    # Call unittest from coverage (add --buffer to 'discover' to hide output from tests that pass)
    coverage run --source=pyramid_jsonapi -m unittest --verbose -f {posargs:test_project.tests test_project.query_tests}
    # Generate coverage report
    #coverage report -m
    # Try to push coverage data to coveralls (ignore exit code as will fail if not on travis)
    - coveralls

[testenv:report]
deps=
    coverage
commands=
    coverage report -m

[testenv:docs]
# Deps needed for code testing (actual deps are in setup.py)
deps=
    sphinx
    sphinx-rtd-theme
    travis-sphinx
# Pass in TRAVIS tokens and GH_TOKEN for travis-sphinx
passenv=TRAVIS TRAVIS_* GH_TOKEN
commands=<commit_msg>turn linting back on<commit_after>[tox]
envlist=py3, docs, report
skip_install=true
skipsdist=true

[testenv:py3]
# Deps needed for code testing (actual deps are in setup.py)
deps=
    coverage
    coveralls
    pycodestyle
    pylint
commands=
    ## Comands fail 'fast' so later commands won't run if any earlier one fails
    # Install 'local' pyramid_jsonapi
    pip install -e .
    # Install deps for test_project
    pip install -e test_project
    pylint --errors-only --rcfile=.pylintrc pyramid_jsonapi
    pycodestyle --ignore=E402,E501,W503,W504,E731 pyramid_jsonapi
    # Call unittest from coverage (add --buffer to 'discover' to hide output from tests that pass)
    coverage run --source=pyramid_jsonapi -m unittest --verbose -f {posargs:test_project.tests}
    # Generate coverage report
    #coverage report -m
    # Try to push coverage data to coveralls (ignore exit code as will fail if not on travis)
    - coveralls

[testenv:report]
deps=
    coverage
commands=
    coverage report -m

[testenv:docs]
# Deps needed for code testing (actual deps are in setup.py)
deps=
    sphinx
    sphinx-rtd-theme
    travis-sphinx
# Pass in TRAVIS tokens and GH_TOKEN for travis-sphinx
passenv=TRAVIS TRAVIS_* GH_TOKEN
commands=
{'fraction_non_alphanumeric': 0.07485988791032826, 'fraction_numerical': 0.013610888710968775, 'mean_word_length': 3.59375, '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': '2023928', 'n_tokens_mistral': 859, 'n_tokens_neox': 823, 'n_words': 279}