<commit_before>[tox]
envlist = py36, py37, py38, pyNightly, {py36,py37,py38,pyNightly}-no-ext, lint, check, security, docs

[testenv]
usedevelop = True
setenv =
    {py36,py37,py38,pyNightly}-no-ext: SANIC_NO_UJSON=1
    {py36,py37,py38,pyNightly}-no-ext: SANIC_NO_UVLOOP=1
deps =
    coverage
    pytest==5.2.1
    pytest-cov
    pytest-sanic
    pytest-sugar
    httpcore==0.3.0
    httpx==0.11.1
    chardet<=2.3.0
    beautifulsoup4
    gunicorn
    pytest-benchmark
    uvicorn
    websockets>=8.1,<9.0
commands =
    pytest {posargs:tests --cov sanic}
    - coverage combine --append
    coverage report -m
    coverage html -i

[testenv:lint]
deps =
    flake8
    black
    isort>=5.0.0
    bandit

commands =
    flake8 sanic
    black --config ./.black.toml --check --verbose sanic/
    isort --check-only sanic

[testenv:type-checking]
deps =
    mypy

commands =
    mypy sanic

[testenv:check]
deps =
    docutils
    pygments
commands =
    python setup.py check -r -s

[pytest]
filterwarnings =
    ignore:.*async with lock.* instead:DeprecationWarning

[testenv:security]
deps =
    bandit

commands =
    bandit --recursive sanic --skip B404,B101 --exclude sanic/reloader_helpers.py

[testenv:docs]
platform = linux|linux2|darwin
whitelist_externals = make
deps =
    sphinx>=2.1.2
    sphinx_rtd_theme>=0.4.3
    recommonmark>=0.5.0
    docutils
    pygments
    gunicorn

commands =
    make docs-test<commit_msg>Adding --strict-markers for pytest<commit_after>[tox]
envlist = py36, py37, py38, pyNightly, {py36,py37,py38,pyNightly}-no-ext, lint, check, security, docs

[testenv]
usedevelop = True
setenv =
    {py36,py37,py38,pyNightly}-no-ext: SANIC_NO_UJSON=1
    {py36,py37,py38,pyNightly}-no-ext: SANIC_NO_UVLOOP=1
deps =
    coverage
    pytest==5.2.1
    pytest-cov
    pytest-sanic
    pytest-sugar
    httpcore==0.3.0
    httpx==0.11.1
    chardet<=2.3.0
    beautifulsoup4
    gunicorn
    pytest-benchmark
    uvicorn
    websockets>=8.1,<9.0
commands =
    pytest {posargs:tests --cov sanic}
    - coverage combine --append
    coverage report -m
    coverage html -i

[testenv:lint]
deps =
    flake8
    black
    isort>=5.0.0
    bandit

commands =
    flake8 sanic
    black --config ./.black.toml --check --verbose sanic/
    isort --check-only sanic

[testenv:type-checking]
deps =
    mypy

commands =
    mypy sanic

[testenv:check]
deps =
    docutils
    pygments
commands =
    python setup.py check -r -s

[pytest]
filterwarnings =
    ignore:.*async with lock.* instead:DeprecationWarning
addopts = --strict-markers

[testenv:security]
deps =
    bandit

commands =
    bandit --recursive sanic --skip B404,B101 --exclude sanic/reloader_helpers.py

[testenv:docs]
platform = linux|linux2|darwin
whitelist_externals = make
deps =
    sphinx>=2.1.2
    sphinx_rtd_theme>=0.4.3
    recommonmark>=0.5.0
    docutils
    pygments
    gunicorn

commands =
    make docs-test
{'fraction_non_alphanumeric': 0.1143543956043956, 'fraction_numerical': 0.044642857142857144, 'mean_word_length': 2.8685258964143427, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '1899100', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1170, 'n_words': 230}