summaryrefslogtreecommitdiff
path: root/kvmd/tox.ini
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-08-07 19:09:47 +0300
committerDevaev Maxim <[email protected]>2018-08-07 19:09:47 +0300
commita844e9d152b67e0f2aa344992f02397144394a6d (patch)
treed745599bece9eae126f636d2aba5f568f31714d8 /kvmd/tox.ini
parent20f7e2cde675fe7c3bddbf62328ebe9a11d96e13 (diff)
web linting
Diffstat (limited to 'kvmd/tox.ini')
-rw-r--r--kvmd/tox.ini10
1 files changed, 9 insertions, 1 deletions
diff --git a/kvmd/tox.ini b/kvmd/tox.ini
index acb98107..f7145ed3 100644
--- a/kvmd/tox.ini
+++ b/kvmd/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = flake8, pylint, mypy, vulture
+envlist = flake8, pylint, mypy, vulture, eslint, htmlhint
skipsdist = True
[testenv]
@@ -30,6 +30,14 @@ deps =
vulture
-rtestenv/requirements.txt
+[testenv:eslint]
+whitelist_externals = eslint
+commands = eslint --config=eslintrc.yaml --color web/js
+
+[testenv:htmlhint]
+whitelist_externals = htmlhint
+commands = htmlhint web/*.html
+
[flake8]
max-line-length = 160
# W503 line break before binary operator