Enable codespell and fix mistakes
This commit is contained in:
@@ -331,7 +331,7 @@ class TuyaInterface:
|
|||||||
if "devId" in json_data:
|
if "devId" in json_data:
|
||||||
json_data["devId"] = self.id
|
json_data["devId"] = self.id
|
||||||
if "uid" in json_data:
|
if "uid" in json_data:
|
||||||
json_data["uid"] = self.id # still use id, no seperate uid
|
json_data["uid"] = self.id # still use id, no separate uid
|
||||||
if "t" in json_data:
|
if "t" in json_data:
|
||||||
json_data["t"] = str(int(time.time()))
|
json_data["t"] = str(int(time.time()))
|
||||||
|
|
||||||
|
4
tox.ini
4
tox.ini
@@ -2,7 +2,7 @@
|
|||||||
skipsdist = true
|
skipsdist = true
|
||||||
envlist = py{37,38}, lint, typing
|
envlist = py{37,38}, lint, typing
|
||||||
skip_missing_interpreters = True
|
skip_missing_interpreters = True
|
||||||
cs_exclude_words =
|
cs_exclude_words = hass,unvalid
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
@@ -27,7 +27,7 @@ ignore_errors = True
|
|||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
commands =
|
commands =
|
||||||
#codespell -q 4 -L {[tox]cs_exclude_words} --skip="*.pyc,*.pyi,*~" custom_components
|
codespell -q 4 -L {[tox]cs_exclude_words} --skip="*.pyc,*.pyi,*~" custom_components
|
||||||
flake8 custom_components
|
flake8 custom_components
|
||||||
black --fast --check .
|
black --fast --check .
|
||||||
pydocstyle -v custom_components
|
pydocstyle -v custom_components
|
||||||
|
Reference in New Issue
Block a user