<commit_before>[tox]
envlist = py38-django{30,_master}
skipsdist = True

[testenv]
passenv =
    CODECOV_* TOXENV CI TRAVIS TRAVIS_*
    DATABASE_URL SECRET_KEY QUERIES_RESULTS_PATH
deps =
    -rrequirements.txt
    -rrequirements_dev.txt
commands =
    django30: pip install "django>=3.0a1,<3.1" --upgrade --pre
    django_master: pip install https://github.com/django/django/archive/master.tar.gz
    python manage.py collectstatic --noinput --verbosity=0
    pytest --cov --cov-report= --django-db-bench={env:QUERIES_RESULTS_PATH}
    codecov

[testenv:black]
basepython = python3.8
commands =
    black --check .

[testenv:flake8]
basepython = python3.8
deps =
    flake8>=3.7.0
commands =
    flake8 saleor

[testenv:pydocstyle]
basepython = python3.8
whitelist_externals = sh
commands =
    sh -c 'find saleor -name "*.py" -type f ! -path "*tests*" | xargs pydocstyle -v'
<commit_msg>Turn off autoupgrade on django package in Travis<commit_after>[tox]
envlist = py38-django{30,_master}
skipsdist = True

[testenv]
passenv =
    CODECOV_* TOXENV CI TRAVIS TRAVIS_*
    DATABASE_URL SECRET_KEY QUERIES_RESULTS_PATH
deps =
    -rrequirements.txt
    -rrequirements_dev.txt
commands =
    ; django30: pip install "django>=3.0a1,<3.1" --upgrade --pre
    django_master: pip install https://github.com/django/django/archive/master.tar.gz
    python manage.py collectstatic --noinput --verbosity=0
    pytest --cov --cov-report= --django-db-bench={env:QUERIES_RESULTS_PATH}
    codecov

[testenv:black]
basepython = python3.8
commands =
    black --check .

[testenv:flake8]
basepython = python3.8
deps =
    flake8>=3.7.0
commands =
    flake8 saleor

[testenv:pydocstyle]
basepython = python3.8
whitelist_externals = sh
commands =
    sh -c 'find saleor -name "*.py" -type f ! -path "*tests*" | xargs pydocstyle -v'

{'fraction_non_alphanumeric': 0.12162905888827738, 'fraction_numerical': 0.026417171161254815, 'mean_word_length': 3.6259541984732824, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1382054', 'n_tokens_mistral': 700, 'n_tokens_neox': 668, 'n_words': 151}