pelican/tox.ini
Deniz Turgut cdc90d5d07
unpin flake8 and do not install pelican while checking
installing pelican brings in markdown. flake8 and markdown have
incompatible requirements for importlib-metadata. installing pelican
is not required to run flake8.
2022-10-23 18:25:25 +03:00

45 lines
823 B
INI

[tox]
envlist = py{3.7,3.8,3.9,3.10},docs,flake8
[testenv]
basepython =
py3.7: python3.7
py3.8: python3.8
py3.9: python3.9
py3.10: python3.10
passenv = *
usedevelop=True
deps =
-rrequirements/test.pip
commands =
{envpython} --version
pytest -s --cov=pelican pelican
[testenv:docs]
basepython = python3.9
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 auto -r a
[flake8]
application-import-names = pelican
import-order-style = cryptography
max-line-length = 88
[testenv:flake8]
basepython = python3.9
skip_install = true
deps =
-rrequirements/style.pip
commands =
flake8 --version
flake8 pelican