blob: b36d00c4a76687a8393c069c27088eced69693dd [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 Kemmer775c51d2016-03-29 13:03:40 +02006 pytest
7 pytest-cov
8commands =
9 py.test --basetemp={envtmpdir} --cov=cachetools {posargs}
10
11[testenv:check-manifest]
12deps =
Thomas Kemmer743576f2021-04-27 19:56:36 +020013 check-manifest==0.44; python_version < "3.8"
14 check-manifest; python_version >= "3.8"
Thomas Kemmer775c51d2016-03-29 13:03:40 +020015commands =
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 Kemmerfc477612021-08-09 21:57:40 +020034 flake8-black; implementation_name == "cpython"
Thomas Kemmer187b13a2021-04-27 07:12:43 +020035 flake8-bugbear
Thomas Kemmer775c51d2016-03-29 13:03:40 +020036 flake8-import-order
37commands =
38 flake8
39skip_install = true