mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 11:01:53 +08:00
web linting
This commit is contained in:
10
kvmd/tox.ini
10
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
|
||||
|
||||
Reference in New Issue
Block a user