This commit is contained in:
Maxim Devaev
2023-05-27 12:47:50 +03:00
parent 602ca16178
commit b17b87018b

View File

@@ -3,11 +3,11 @@ envlist = cppcheck, flake8, pylint, mypy, vulture, htmlhint
skipsdist = true skipsdist = true
[testenv] [testenv]
basepython = python3.10 basepython = python3.11
changedir = /src changedir = /src
[testenv:cppcheck] [testenv:cppcheck]
whitelist_externals = cppcheck allowlist_externals = cppcheck
commands = cppcheck \ commands = cppcheck \
-j4 \ -j4 \
--force \ --force \
@@ -23,30 +23,30 @@ commands = cppcheck \
src python/*.? janus/*.? src python/*.? janus/*.?
[testenv:flake8] [testenv:flake8]
whitelist_externals = bash allowlist_externals = bash
commands = bash -c 'flake8 --config=linters/flake8.ini tools/*.py' python/*.py commands = bash -c 'flake8 --config=linters/flake8.ini tools/*.py' python/*.py
deps = deps =
flake8==5.0.4 flake8==5.0.4
flake8-quotes flake8-quotes
[testenv:pylint] [testenv:pylint]
whitelist_externals = bash allowlist_externals = bash
commands = bash -c 'pylint --rcfile=linters/pylint.ini --output-format=colorized --reports=no tools/*.py python/*.py' commands = bash -c 'pylint --rcfile=linters/pylint.ini --output-format=colorized --reports=no tools/*.py python/*.py'
deps = deps =
pylint pylint
[testenv:mypy] [testenv:mypy]
whitelist_externals = bash allowlist_externals = bash
commands = bash -c 'mypy --config-file=linters/mypy.ini tools/*.py python/*.py' commands = bash -c 'mypy --config-file=linters/mypy.ini tools/*.py python/*.py'
deps = deps =
mypy mypy
[testenv:vulture] [testenv:vulture]
whitelist_externals = bash allowlist_externals = bash
commands = bash -c 'vulture tools/*.py python/*.py' commands = bash -c 'vulture tools/*.py python/*.py'
deps = deps =
vulture vulture
[testenv:htmlhint] [testenv:htmlhint]
whitelist_externals = htmlhint allowlist_externals = htmlhint
commands = htmlhint src/ustreamer/http/data/*.html commands = htmlhint src/ustreamer/http/data/*.html