summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-05-04 12:37:05 +0300
committerMaxim Devaev <[email protected]>2023-05-04 12:37:05 +0300
commitb5353e63cd52b0d98e7a56acc5c8fbfc6ad8b3ee (patch)
tree3176f1a738b9533e6f3a28b132e4501a6f97f991 /testenv
parentb5d67314977a7e475fac164446031ca7c83b8bc4 (diff)
python 3.11 fixes
Diffstat (limited to 'testenv')
-rw-r--r--testenv/linters/mypy.ini2
-rw-r--r--testenv/tox.ini16
2 files changed, 9 insertions, 9 deletions
diff --git a/testenv/linters/mypy.ini b/testenv/linters/mypy.ini
index 33877875..d436fd2c 100644
--- a/testenv/linters/mypy.ini
+++ b/testenv/linters/mypy.ini
@@ -1,5 +1,5 @@
[mypy]
-python_version = 3.10
+python_version = 3.11
ignore_missing_imports = true
disallow_untyped_defs = true
strict_optional = true
diff --git a/testenv/tox.ini b/testenv/tox.ini
index 77f8521a..c0efad82 100644
--- a/testenv/tox.ini
+++ b/testenv/tox.ini
@@ -3,12 +3,12 @@ envlist = flake8, pylint, mypy, vulture, pytest, eslint, htmlhint, shellcheck
skipsdist = true
[testenv]
-basepython = python3.10
+basepython = python3.11
sitepackages = true
changedir = /src
[testenv:flake8]
-whitelist_externals = bash
+allowlist_externals = bash
commands = bash -c 'flake8 --config=testenv/linters/flake8.ini kvmd testenv/tests *.py'
deps =
flake8==5.0.4
@@ -16,7 +16,7 @@ deps =
-rrequirements.txt
[testenv:pylint]
-whitelist_externals = bash
+allowlist_externals = bash
commands = bash -c 'pylint -j0 --rcfile=testenv/linters/pylint.ini --output-format=colorized --reports=no kvmd testenv/tests *.py'
deps =
pylint
@@ -26,14 +26,14 @@ deps =
-rrequirements.txt
[testenv:mypy]
-whitelist_externals = bash
+allowlist_externals = bash
commands = bash -c 'mypy --config-file=testenv/linters/mypy.ini --cache-dir=testenv/.mypy_cache kvmd testenv/tests *.py'
deps =
mypy
-rrequirements.txt
[testenv:vulture]
-whitelist_externals = bash
+allowlist_externals = bash
commands = bash -c 'vulture --ignore-names=_format_P,Plugin --ignore-decorators=@exposed_http,@exposed_ws,@pytest.fixture kvmd testenv/tests *.py testenv/linters/vulture-wl.py'
deps =
vulture
@@ -53,13 +53,13 @@ deps =
-rrequirements.txt
[testenv:eslint]
-whitelist_externals = eslint
+allowlist_externals = eslint
commands = eslint --cache-location=/tmp --config=testenv/linters/eslintrc.yaml --color --ext .js web/share/js
[testenv:htmlhint]
-whitelist_externals = htmlhint
+allowlist_externals = htmlhint
commands = htmlhint --config=testenv/linters/htmlhint.json web/*.html web/*/*.html
[testenv:shellcheck]
-whitelist_externals = bash
+allowlist_externals = bash
commands = bash -c 'shellcheck --color=always kvmd.install scripts/*'