<commit_before>[gh-actions]
python =
    2.7: py27
    pypy-2.7: pypy
    3.7: py37
    3.8: py38
    3.9: py39
    3.10: py310

[tox]
envlist =
  py{27,py}-django111-pyparsing2{,-msgpack,-pyhash},
  py{37,38,39}-django{111,22,30}-pyparsing{2,3}{,-msgpack},
  py310-django30-pyparsing3{,-msgpack},
  lint, docs

[testenv]
whitelist_externals =
	mkdir
setenv =
	DJANGO_SETTINGS_MODULE=tests.settings
	PYTHONPATH={toxinidir}/webapp
	GRAPHITE_NO_PREFIX=true
	mysql: TEST_MYSQL=true
	postgresql: TEST_POSTGRESQL=true
passenv = TEST_MYSQL_* TEST_POSTGRESQL_* TEST_REDIS_*
changedir = webapp
commands =
	coverage run --branch --source=graphite manage.py test {posargs}
	coverage xml
	coverage report
deps =
	coverage
	cairocffi
	django-tagging
	pytz
	mock
	git+https://github.com/graphite-project/whisper.git#egg=whisper
	git+https://github.com/graphite-project/ceres.git#egg=ceres
	pyparsing2: pyparsing==2.4.7
	pyparsing3: pyparsing>=3.0.6
	django111: Django>=1.11,<1.11.99
	django22: Django>=2.2,<2.2.99
	django30: Django>=3.0,<3.0.99
	scandir; python_version<"3.5"
	urllib3
	redis
	rrdtool
	mysql: mysqlclient
	postgresql: psycopg2
	msgpack: msgpack-python
	pyhash: pyhash

[testenv:docs]
basepython = python3.10
changedir = docs
deps =
	cairocffi
	django-tagging
	pytz
	git+https://github.com/graphite-project/whisper.git#egg=whisper
	git+https://github.com/graphite-project/ceres.git#egg=ceres
	Django<3.1
	pyparsing: pyparsing>=2.3.0,<3.0.0
	Sphinx<1.4
	sphinx_rtd_theme
	urllib3
commands =
	mkdir -p {envsitepackagesdir}/../storage/ceres
	sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:lint]
basepython = python3.10
changedir = {toxinidir}
deps =
	flake8==3.7.9
commands =
	flake8 --show-source<commit_msg>fixing sphinx jinja dep<commit_after>[gh-actions]
python =
    2.7: py27
    pypy-2.7: pypy
    3.7: py37
    3.8: py38
    3.9: py39
    3.10: py310

[tox]
envlist =
  py{27,py}-django111-pyparsing2{,-msgpack,-pyhash},
  py{37,38,39}-django{111,22,30}-pyparsing{2,3}{,-msgpack},
  py310-django30-pyparsing3{,-msgpack},
  lint, docs

[testenv]
whitelist_externals =
	mkdir
setenv =
	DJANGO_SETTINGS_MODULE=tests.settings
	PYTHONPATH={toxinidir}/webapp
	GRAPHITE_NO_PREFIX=true
	mysql: TEST_MYSQL=true
	postgresql: TEST_POSTGRESQL=true
passenv = TEST_MYSQL_* TEST_POSTGRESQL_* TEST_REDIS_*
changedir = webapp
commands =
	coverage run --branch --source=graphite manage.py test {posargs}
	coverage xml
	coverage report
deps =
	coverage
	cairocffi
	django-tagging
	pytz
	mock
	git+https://github.com/graphite-project/whisper.git#egg=whisper
	git+https://github.com/graphite-project/ceres.git#egg=ceres
	pyparsing2: pyparsing==2.4.7
	pyparsing3: pyparsing>=3.0.6
	django111: Django>=1.11,<1.11.99
	django22: Django>=2.2,<2.2.99
	django30: Django>=3.0,<3.0.99
	scandir; python_version<"3.5"
	urllib3
	redis
	rrdtool
	mysql: mysqlclient
	postgresql: psycopg2
	msgpack: msgpack-python
	pyhash: pyhash

[testenv:docs]
basepython = python3.10
changedir = docs
deps =
	cairocffi
	django-tagging
	pytz
	git+https://github.com/graphite-project/whisper.git#egg=whisper
	git+https://github.com/graphite-project/ceres.git#egg=ceres
	Django<3.1
	pyparsing: pyparsing>=2.3.0,<3.0.0
	Sphinx<1.4
	jinja2<3.1.0
	sphinx_rtd_theme
	urllib3
commands =
	mkdir -p {envsitepackagesdir}/../storage/ceres
	sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:lint]
basepython = python3.10
changedir = {toxinidir}
deps =
	flake8==3.7.9
commands =
	flake8 --show-source
{'fraction_non_alphanumeric': 0.13685714285714284, 'fraction_numerical': 0.06514285714285714, 'mean_word_length': 4.57484076433121, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1702930', 'n_tokens_mistral': 1673, 'n_tokens_neox': 1585, 'n_words': 241}