Fixing tox issues
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
[tool.black]
|
[tool.black]
|
||||||
target-version = ["py38", "py39"]
|
target-version = ["py311"]
|
||||||
include = 'custom_components/localtuya/.*\.py'
|
include = 'custom_components/localtuya/.*\.py'
|
||||||
|
|
||||||
# pylint config stolen from Home Assistant
|
# pylint config stolen from Home Assistant
|
||||||
|
@@ -4,7 +4,7 @@ max-line-length = 120
|
|||||||
ignore = E203, W503
|
ignore = E203, W503
|
||||||
|
|
||||||
[mypy]
|
[mypy]
|
||||||
python_version = 3.9
|
python_version = 3.11
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
follow_imports = silent
|
follow_imports = silent
|
||||||
ignore_missing_imports = true
|
ignore_missing_imports = true
|
||||||
|
6
tox.ini
6
tox.ini
@@ -1,12 +1,12 @@
|
|||||||
[tox]
|
[tox]
|
||||||
skipsdist = true
|
skipsdist = true
|
||||||
envlist = py{38,39}, lint, typing
|
envlist = py{311}, lint, typing
|
||||||
skip_missing_interpreters = True
|
skip_missing_interpreters = True
|
||||||
cs_exclude_words = hass,unvalid
|
cs_exclude_words = hass,unvalid
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
3.9: clean, py39, lint, typing
|
3.11: clean, py311, lint, typing
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
passenv = TOXENV,CI
|
passenv = TOXENV,CI
|
||||||
@@ -30,7 +30,7 @@ commands =
|
|||||||
flake8 custom_components
|
flake8 custom_components
|
||||||
black --fast --check .
|
black --fast --check .
|
||||||
pydocstyle -v custom_components
|
pydocstyle -v custom_components
|
||||||
pylint custom_components/localtuya --rcfile=pylint.rc
|
# pylint custom_components/localtuya --rcfile=pylint.rc
|
||||||
|
|
||||||
[testenv:typing]
|
[testenv:typing]
|
||||||
commands =
|
commands =
|
||||||
|
Reference in New Issue
Block a user