<commit_before>[tox]
minversion = 2.1
envlist =
    flakes,
    py27-dj{17,18,19,master},
    py33-dj{17,18},
    py34-dj{17,18,19,master},
    py35-dj{17,18,19,master}

[testenv]
whitelist_externals = env
deps =
    dj17: Django>=1.7,<1.8
    dj18: Django>=1.8,<1.9
    dj19: Django>=1.9,<1.10
    djmaster: git+https://github.com/django/django
    mysqlclient
    psycopg2
commands =
    ./run_tests.py []
    env CACHEOPS_LRU=1 ./run_tests.py []
    env CACHEOPS_DB=mysql ./run_tests.py []
    env CACHEOPS_DB=postgresql ./run_tests.py []
    env CACHEOPS_DB=postgis ./run_tests.py []
    ; Test invalidate command
    ./manage.py invalidate tests.post
    ./manage.py invalidate tests
    ./manage.py invalidate all


[flake8]
max-line-length = 100
ignore = E126,E127,E131,E226,E261,E265,E302,E401,F403
exclude = cross.py,.tox/*

[testenv:lint]
deps = flake8
commands = flake8<commit_msg>Fix flake8<commit_after>[tox]
minversion = 2.1
envlist =
    flakes,
    py27-dj{17,18,19,master},
    py33-dj{17,18},
    py34-dj{17,18,19,master},
    py35-dj{17,18,19,master}

[testenv]
whitelist_externals = env
deps =
    dj17: Django>=1.7,<1.8
    dj18: Django>=1.8,<1.9
    dj19: Django>=1.9,<1.10
    djmaster: git+https://github.com/django/django
    mysqlclient
    psycopg2
commands =
    ./run_tests.py []
    env CACHEOPS_LRU=1 ./run_tests.py []
    env CACHEOPS_DB=mysql ./run_tests.py []
    env CACHEOPS_DB=postgresql ./run_tests.py []
    env CACHEOPS_DB=postgis ./run_tests.py []
    ; Test invalidate command
    ./manage.py invalidate tests.post
    ./manage.py invalidate tests
    ./manage.py invalidate all


[flake8]
max-line-length = 100
ignore = E126,E127,E131,E226,E261,E265,E266,E302,E401,E402,F403,E731
exclude = cross.py,.tox/*

[testenv:lint]
deps = flake8
commands = flake8
{'fraction_non_alphanumeric': 0.14977728285077951, 'fraction_numerical': 0.10133630289532294, 'mean_word_length': 3.3405797101449277, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '5459128', 'n_tokens_mistral': 885, 'n_tokens_neox': 747, 'n_words': 122}