blob: e2315dbe8c58a1b05baa32c03e367d38f742d24b [file] [log] [blame]
Thomas Kemmer775c51d2016-03-29 13:03:40 +02001[tox]
Thomas Kemmer2cde6ef2018-11-03 17:11:10 +01002envlist = check-manifest,docs,doctest,flake8,py
Thomas Kemmer775c51d2016-03-29 13:03:40 +02003
4[testenv]
Thomas Kemmer775c51d2016-03-29 13:03:40 +02005deps =
Thomas Kemmerf9e6e462016-09-27 15:20:44 +02006 coverage
Thomas Kemmer775c51d2016-03-29 13:03:40 +02007 pytest
8 pytest-cov
9commands =
10 py.test --basetemp={envtmpdir} --cov=cachetools {posargs}
11
12[testenv:check-manifest]
13deps =
14 check-manifest
15commands =
16 check-manifest
17skip_install = true
18
19[testenv:docs]
20deps =
21 sphinx
22commands =
23 sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
24
Thomas Kemmer2cde6ef2018-11-03 17:11:10 +010025[testenv:doctest]
26deps =
Thomas Kemmer2cde6ef2018-11-03 17:11:10 +010027 sphinx
28commands =
29 sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs {envtmpdir}/doctest
30
Thomas Kemmer775c51d2016-03-29 13:03:40 +020031[testenv:flake8]
32deps =
33 flake8
Thomas Kemmer187b13a2021-04-27 07:12:43 +020034 flake8-black; python_version >= "3.6" and implementation_name == "cpython"
35 flake8-bugbear
Thomas Kemmer775c51d2016-03-29 13:03:40 +020036 flake8-import-order
37commands =
38 flake8
39skip_install = true