Enable codespell and fix mistakes

This commit is contained in:
Pierre Ståhl
2020-09-23 17:57:19 +02:00
parent 4e72767b30
commit 02a2f08c40
2 changed files with 3 additions and 3 deletions

View File

@@ -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()))

View File

@@ -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