<commit_before>[tox]
envlist =
    py{27,34,35,36}-django{111,20}
    py36-djangomaster
    lint
    sandbox


[testenv]
commands = coverage run --parallel -m pytest {posargs}
extras = test
pip_pre = true
deps =
    django111: django>=1.11,<2
    django20: django>=2.0,<2.1


[testenv:py36-djangomaster]
commands =
    # Can't specify this in deps - see https://github.com/tox-dev/tox/issues/513
    pip install https://github.com/django/django/archive/master.tar.gz#egg=django
    pytest {posargs}


[testenv:coverage-report]
basepython = python3.6
deps = coverage
skip_install = true
commands =
    coverage combine
    coverage report


[testenv:lint]
basepython = python3.6
deps =
    flake8
    isort
commands =
    flake8 src tests setup.py
    isort -q --recursive --diff src/ tests/
<commit_msg>Add a step to the tox lint env to check that i18n messages can be compiled.<commit_after>[tox]
envlist =
    py{27,34,35,36}-django{111,20}
    py36-djangomaster
    lint
    sandbox


[testenv]
commands = coverage run --parallel -m pytest {posargs}
extras = test
pip_pre = true
deps =
    django111: django>=1.11,<2
    django20: django>=2.0,<2.1


[testenv:py36-djangomaster]
commands =
    # Can't specify this in deps - see https://github.com/tox-dev/tox/issues/513
    pip install https://github.com/django/django/archive/master.tar.gz#egg=django
    pytest {posargs}


[testenv:coverage-report]
basepython = python3.6
deps = coverage
skip_install = true
commands =
    coverage combine
    coverage report


[testenv:lint]
basepython = python3.6
deps =
    flake8
    isort
commands =
    flake8 src tests setup.py
    isort -q --recursive --diff src/ tests/
    django-admin.py compilemessages

{'fraction_non_alphanumeric': 0.11326291079812206, 'fraction_numerical': 0.046948356807511735, 'mean_word_length': 3.273182957393484, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '1279980', 'n_tokens_mistral': 666, 'n_tokens_neox': 611, 'n_words': 149}