From 02a2f08c4055cb6e28dc7aedc732a0815bca8249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20St=C3=A5hl?= Date: Wed, 23 Sep 2020 17:57:19 +0200 Subject: [PATCH] Enable codespell and fix mistakes --- custom_components/localtuya/pytuya/__init__.py | 2 +- tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/localtuya/pytuya/__init__.py b/custom_components/localtuya/pytuya/__init__.py index a60fd89..8b0ca19 100644 --- a/custom_components/localtuya/pytuya/__init__.py +++ b/custom_components/localtuya/pytuya/__init__.py @@ -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())) diff --git a/tox.ini b/tox.ini index 427fc19..91ebab3 100644 --- a/tox.ini +++ b/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