PyLint fix

This commit is contained in:
Ivan Kravets
2021-07-05 16:06:02 +03:00
parent 5036d25b60
commit 71ae579bc0
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
lint:
pylint -j 6 --rcfile=./.pylintrc ./platformio
pylint -j 6 --rcfile=./.pylintrc ./tests
pylint -j 6 --rcfile=./.pylintrc ./platformio
isort:
isort ./platformio

View File

@ -42,6 +42,7 @@ def clirunner(request):
"PLATFORMIO_WORKSPACE_DIR": {"new": None},
}
for key, item in backup_env_vars.items():
# pylint: disable=unnecessary-dict-index-lookup
backup_env_vars[key]["old"] = os.environ.get(key)
if item["new"] is not None:
os.environ[key] = item["new"]