summaryrefslogtreecommitdiff
path: root/testenv/tox.ini
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-16 09:25:39 +0300
committerDevaev Maxim <[email protected]>2018-11-16 09:25:39 +0300
commitcd6e490d0f68147980dcf62bea5aace1b05d59e6 (patch)
tree76cb1a6f66ca4b50236333588c51190570c418ef /testenv/tox.ini
parent17c6b9e31f9910c30ac660476e7bed8103f3935e (diff)
moved tox to testenv
Diffstat (limited to 'testenv/tox.ini')
-rw-r--r--testenv/tox.ini48
1 files changed, 48 insertions, 0 deletions
diff --git a/testenv/tox.ini b/testenv/tox.ini
new file mode 100644
index 00000000..6d71a64c
--- /dev/null
+++ b/testenv/tox.ini
@@ -0,0 +1,48 @@
+[tox]
+envlist = flake8, pylint, mypy, vulture, eslint, htmlhint
+skipsdist = True
+
+[testenv]
+basepython = python3.7
+changedir = /kvmd
+
+[testenv:flake8]
+commands = flake8 --config=testenv/tox.ini kvmd genmap.py
+deps =
+ flake8
+ flake8-double-quotes
+ -rrequirements.txt
+
+[testenv:pylint]
+commands = pylint --rcfile=testenv/pylintrc --output-format=colorized --reports=no kvmd genmap.py
+deps =
+ pylint
+ -rrequirements.txt
+
+[testenv:mypy]
+commands = mypy --config-file=testenv/mypy.ini --cache-dir=testenv/.mypy_cache kvmd genmap.py
+deps =
+ mypy
+ -rrequirements.txt
+
+[testenv:vulture]
+commands = vulture kvmd genmap.py testenv/vulture-wl.py
+deps =
+ vulture
+ -rrequirements.txt
+
+[testenv:eslint]
+whitelist_externals = eslint
+commands = eslint --config=testenv/eslintrc.yaml --color --ext .js web/js
+
+[testenv:htmlhint]
+whitelist_externals = htmlhint
+commands = htmlhint web/*.html
+
+[flake8]
+max-line-length = 160
+# W503 line break before binary operator
+# E227 missing whitespace around bitwise or shift operator
+# E241 multiple spaces after
+# E252 missing whitespace around parameter equals
+ignore=W503,E227,E241,E252