Enable codespell and fix mistakes
This commit is contained in:
@@ -331,7 +331,7 @@ class TuyaInterface:
|
||||
if "devId" in json_data:
|
||||
json_data["devId"] = self.id
|
||||
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:
|
||||
json_data["t"] = str(int(time.time()))
|
||||
|
||||
|
4
tox.ini
4
tox.ini
@@ -2,7 +2,7 @@
|
||||
skipsdist = true
|
||||
envlist = py{37,38}, lint, typing
|
||||
skip_missing_interpreters = True
|
||||
cs_exclude_words =
|
||||
cs_exclude_words = hass,unvalid
|
||||
|
||||
[gh-actions]
|
||||
python =
|
||||
@@ -27,7 +27,7 @@ ignore_errors = True
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
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
|
||||
black --fast --check .
|
||||
pydocstyle -v custom_components
|
||||
|
Reference in New Issue
Block a user