aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini39
1 files changed, 39 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..b36d00c
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,39 @@
+[tox]
+envlist = check-manifest,docs,doctest,flake8,py
+
+[testenv]
+deps =
+ pytest
+ pytest-cov
+commands =
+ py.test --basetemp={envtmpdir} --cov=cachetools {posargs}
+
+[testenv:check-manifest]
+deps =
+ check-manifest==0.44; python_version < "3.8"
+ check-manifest; python_version >= "3.8"
+commands =
+ check-manifest
+skip_install = true
+
+[testenv:docs]
+deps =
+ sphinx
+commands =
+ sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
+
+[testenv:doctest]
+deps =
+ sphinx
+commands =
+ sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs {envtmpdir}/doctest
+
+[testenv:flake8]
+deps =
+ flake8
+ flake8-black; implementation_name == "cpython"
+ flake8-bugbear
+ flake8-import-order
+commands =
+ flake8
+skip_install = true