2011-07-02 15:54:24 -05:00
|
|
|
[tox]
|
2020-04-26 15:01:56 +03:00
|
|
|
envlist = py{3.5,3.6,3.7,3.8},docs,flake8
|
2011-07-02 15:54:24 -05:00
|
|
|
|
|
|
|
|
[testenv]
|
2015-04-11 15:02:53 +02:00
|
|
|
basepython =
|
2020-04-26 15:01:56 +03:00
|
|
|
py3.5: python3.5
|
|
|
|
|
py3.6: python3.6
|
|
|
|
|
py3.7: python3.7
|
|
|
|
|
py3.8: python3.8
|
2015-05-13 21:08:39 +02:00
|
|
|
passenv = *
|
2015-04-11 15:02:53 +02:00
|
|
|
usedevelop=True
|
2013-01-11 02:57:43 +01:00
|
|
|
deps =
|
2017-01-23 23:45:08 +01:00
|
|
|
-rrequirements/test.pip
|
2015-04-11 15:02:53 +02:00
|
|
|
|
|
|
|
|
commands =
|
|
|
|
|
{envpython} --version
|
2020-04-26 00:59:54 +03:00
|
|
|
pytest -s --cov=pelican pelican
|
2015-04-11 15:02:53 +02:00
|
|
|
|
|
|
|
|
[testenv:docs]
|
2019-05-13 17:30:29 -04:00
|
|
|
basepython = python3.6
|
2015-04-11 15:02:53 +02:00
|
|
|
deps =
|
2017-01-23 23:45:08 +01:00
|
|
|
-rrequirements/docs.pip
|
2015-04-11 15:02:53 +02:00
|
|
|
changedir = docs
|
|
|
|
|
commands =
|
2015-06-19 19:20:48 +02:00
|
|
|
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
|
2015-06-08 12:50:35 +02:00
|
|
|
|
2019-11-10 20:08:47 -08:00
|
|
|
[pytest]
|
|
|
|
|
filterwarnings =
|
|
|
|
|
default::DeprecationWarning
|
|
|
|
|
error:.*:Warning:pelican
|
2020-08-16 07:23:13 +02:00
|
|
|
addopts = -n auto -r a
|
2019-11-10 20:08:47 -08:00
|
|
|
|
2015-06-08 12:50:35 +02:00
|
|
|
[flake8]
|
|
|
|
|
application-import-names = pelican
|
|
|
|
|
import-order-style = cryptography
|
2020-04-27 09:44:09 +02:00
|
|
|
max-line-length = 88
|
2015-06-08 12:50:35 +02:00
|
|
|
|
|
|
|
|
[testenv:flake8]
|
2019-05-13 17:30:29 -04:00
|
|
|
basepython = python3.6
|
2015-06-08 12:50:35 +02:00
|
|
|
deps =
|
2017-01-23 23:45:08 +01:00
|
|
|
-rrequirements/style.pip
|
2015-06-08 12:50:35 +02:00
|
|
|
commands =
|
2015-06-16 09:25:09 +02:00
|
|
|
flake8 --version
|
2015-06-08 12:50:35 +02:00
|
|
|
flake8 pelican
|