From 0132e2e81f1b1c0d5b6253d0c171502b9e41a760 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 16 Jul 2022 21:52:40 +0200 Subject: add tox to run tests & linters --- tox.ini | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..52aa512 --- /dev/null +++ b/tox.ini @@ -0,0 +1,36 @@ +[flake8] +max-line-length = 100 +exclude = fietsboek/alembic +per-file-ignores = + fietsboek/models/__init__.py:F401 + +[tox] +envlist = python,pylint,flake8 + +[testenv] +deps = pytest +extras = testing +passenv = + TERM +commands = + pytest {posargs} + +[testenv:pylint] +deps = pylint +usedevelop = true +commands = + pylint fietsboek + +[testenv:flake8] +deps = flake8 +usedevelop = true +commands = + flake8 fietsboek + +[testenv:sphinx] +deps = sphinx +usedevelop = true +allowlist_externals = make +changedir={toxinidir}{/}doc +commands = + make html -- cgit v1.2.3