forked from github/pelican
- pytest: verbose isn't needed but show skipped tests - mock is not needed anymore. it is part of stdlib - Unpin Sphinx and fix warning about lexer - Mirror tox command for doc build in tasks.py
44 lines
797 B
INI
44 lines
797 B
INI
[tox]
|
|
envlist = py{3.5,3.6,3.7,3.8},docs,flake8
|
|
|
|
[testenv]
|
|
basepython =
|
|
py3.5: python3.5
|
|
py3.6: python3.6
|
|
py3.7: python3.7
|
|
py3.8: python3.8
|
|
passenv = *
|
|
usedevelop=True
|
|
deps =
|
|
-rrequirements/test.pip
|
|
|
|
commands =
|
|
{envpython} --version
|
|
pytest -s --cov=pelican pelican
|
|
|
|
[testenv:docs]
|
|
basepython = python3.6
|
|
deps =
|
|
-rrequirements/docs.pip
|
|
changedir = docs
|
|
commands =
|
|
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
|
|
|
|
[pytest]
|
|
filterwarnings =
|
|
default::DeprecationWarning
|
|
error:.*:Warning:pelican
|
|
addopts = -n 2 -r a
|
|
|
|
[flake8]
|
|
application-import-names = pelican
|
|
import-order-style = cryptography
|
|
max-line-length = 88
|
|
|
|
[testenv:flake8]
|
|
basepython = python3.6
|
|
deps =
|
|
-rrequirements/style.pip
|
|
commands =
|
|
flake8 --version
|
|
flake8 pelican
|