<commit_before>[tox]
minversion = 2.0
envlist = py35, pep8, docs
skipsdist = True

[testenv]
usedevelop = True
setenv =
   VIRTUAL_ENV={envdir}
   PYTHONDONTWRITEBYTECODE=1
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = -r{toxinidir}/test-requirements.txt
       -r{toxinidir}/requirements.txt
whitelist_externals = sh
                      find
                      rm
commands =
  rm -f data-test.sqlite
  find . -type f -name "*.py[c|o]" -delete
  rm -f .testrepository/times.dbm

[testenv:pep8]
basepython = python3.5
deps = {[testenv]deps}
whitelist_externals = bash
commands = bash tools/flake8wrap.sh {posargs}

[testenv:venv]
commands = {posargs}

[testenv:cover]
# commands = python setup.py test --coverage --testr-args='{posargs}'
basepython = python3.5
commands =
  rm -f data-test.sqlite
  coverage erase
  find . -type f -name "*.pyc" -delete
  python setup.py testr --coverage --testr-args='{posargs}'
  coverage report
  coveralls
  rm -f data-test.sqlite

[flake8]
# E125 continuation line does not distinguish itself from next logical line
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E129 visually indented line with same indent as next logical line
# E265 block comment should start with '# '
# H404 multi line docstring should start with a summary
# H405 multi line docstring summary not separated with an empty line
ignore = E125,E126,E128,E129,E265,H404,H405
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,adminlte<commit_msg>add ignore E711 for flake8<commit_after>[tox]
minversion = 2.0
envlist = py35, pep8, docs
skipsdist = True

[testenv]
usedevelop = True
setenv =
   VIRTUAL_ENV={envdir}
   PYTHONDONTWRITEBYTECODE=1
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = -r{toxinidir}/test-requirements.txt
       -r{toxinidir}/requirements.txt
whitelist_externals = sh
                      find
                      rm
commands =
  rm -f data-test.sqlite
  find . -type f -name "*.py[c|o]" -delete
  rm -f .testrepository/times.dbm

[testenv:pep8]
basepython = python3.5
deps = {[testenv]deps}
whitelist_externals = bash
commands = bash tools/flake8wrap.sh {posargs}

[testenv:venv]
commands = {posargs}

[testenv:cover]
# commands = python setup.py test --coverage --testr-args='{posargs}'
basepython = python3.5
commands =
  rm -f data-test.sqlite
  coverage erase
  find . -type f -name "*.pyc" -delete
  python setup.py testr --coverage --testr-args='{posargs}'
  coverage report
  coveralls
  rm -f data-test.sqlite

[flake8]
# E125 continuation line does not distinguish itself from next logical line
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E129 visually indented line with same indent as next logical line
# E711 comparison to None should be 'if cond is None:'
# E265 block comment should start with '# '
# H404 multi line docstring should start with a summary
# H405 multi line docstring summary not separated with an empty line
ignore = E125,E126,E128,E129,E265, E711, H404,H405
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,adminlte
{'fraction_non_alphanumeric': 0.09984447900466563, 'fraction_numerical': 0.03732503888024884, 'mean_word_length': 3.8580060422960725, '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': '5838816', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1091, 'n_words': 323}