web linting

This commit is contained in:
Devaev Maxim
2018-08-07 19:09:47 +03:00
parent 20f7e2cde6
commit a844e9d152
10 changed files with 85 additions and 34 deletions

View File

@@ -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