aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-07-16 21:52:40 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-07-16 21:52:40 +0200
commit0132e2e81f1b1c0d5b6253d0c171502b9e41a760 (patch)
tree5d97bed2e7927a1bbf2bca9460f5f57ba6347f44
parent998f5ed9427cb321279765c31cef6dea84a1260b (diff)
downloadfietsboek-0132e2e81f1b1c0d5b6253d0c171502b9e41a760.tar.gz
fietsboek-0132e2e81f1b1c0d5b6253d0c171502b9e41a760.tar.bz2
fietsboek-0132e2e81f1b1c0d5b6253d0c171502b9e41a760.zip
add tox to run tests & linters
-rw-r--r--tox.ini36
1 files changed, 36 insertions, 0 deletions
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