Skip to content

Commit

Permalink
Fixing tox issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rospogrigio committed Sep 15, 2023
1 parent 69774f5 commit 0c8fd9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.black]
target-version = ["py38", "py39"]
target-version = ["py311"]
include = 'custom_components/localtuya/.*\.py'

# pylint config stolen from Home Assistant
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ max-line-length = 120
ignore = E203, W503

[mypy]
python_version = 3.9
python_version = 3.11
ignore_errors = true
follow_imports = silent
ignore_missing_imports = true
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tox]
skipsdist = true
envlist = py{38,39}, lint, typing
envlist = py{311}, lint, typing
skip_missing_interpreters = True
cs_exclude_words = hass,unvalid

[gh-actions]
python =
3.9: clean, py39, lint, typing
3.11: clean, py311, lint, typing

[testenv]
passenv = TOXENV,CI
Expand All @@ -30,7 +30,7 @@ commands =
flake8 custom_components
black --fast --check .
pydocstyle -v custom_components
pylint custom_components/localtuya --rcfile=pylint.rc
# pylint custom_components/localtuya --rcfile=pylint.rc

[testenv:typing]
commands =
Expand Down

0 comments on commit 0c8fd9d

Please sign in to comment.