Thomas Kemmer | 775c51d | 2016-03-29 13:03:40 +0200 | [diff] [blame] | 1 | [tox] |
Thomas Kemmer | 2cde6ef | 2018-11-03 17:11:10 +0100 | [diff] [blame] | 2 | envlist = check-manifest,docs,doctest,flake8,py |
Thomas Kemmer | 775c51d | 2016-03-29 13:03:40 +0200 | [diff] [blame] | 3 | |
| 4 | [testenv] |
Thomas Kemmer | 775c51d | 2016-03-29 13:03:40 +0200 | [diff] [blame] | 5 | deps = |
Thomas Kemmer | f9e6e46 | 2016-09-27 15:20:44 +0200 | [diff] [blame] | 6 | coverage |
Thomas Kemmer | 775c51d | 2016-03-29 13:03:40 +0200 | [diff] [blame] | 7 | pytest |
| 8 | pytest-cov |
| 9 | commands = |
| 10 | py.test --basetemp={envtmpdir} --cov=cachetools {posargs} |
| 11 | |
| 12 | [testenv:check-manifest] |
| 13 | deps = |
| 14 | check-manifest |
| 15 | commands = |
| 16 | check-manifest |
| 17 | skip_install = true |
| 18 | |
| 19 | [testenv:docs] |
| 20 | deps = |
| 21 | sphinx |
| 22 | commands = |
| 23 | sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html |
| 24 | |
Thomas Kemmer | 2cde6ef | 2018-11-03 17:11:10 +0100 | [diff] [blame] | 25 | [testenv:doctest] |
| 26 | deps = |
Thomas Kemmer | 2cde6ef | 2018-11-03 17:11:10 +0100 | [diff] [blame] | 27 | sphinx |
| 28 | commands = |
| 29 | sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs {envtmpdir}/doctest |
| 30 | |
Thomas Kemmer | 775c51d | 2016-03-29 13:03:40 +0200 | [diff] [blame] | 31 | [testenv:flake8] |
| 32 | deps = |
| 33 | flake8 |
Thomas Kemmer | 187b13a | 2021-04-27 07:12:43 +0200 | [diff] [blame^] | 34 | flake8-black; python_version >= "3.6" and implementation_name == "cpython" |
| 35 | flake8-bugbear |
Thomas Kemmer | 775c51d | 2016-03-29 13:03:40 +0200 | [diff] [blame] | 36 | flake8-import-order |
| 37 | commands = |
| 38 | flake8 |
| 39 | skip_install = true |