mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Bump pylint from 2.15.10 to 2.16.2 (#4426)
* Bump pylint from 2.15.10 to 2.16.2 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.15.10 to 2.16.2. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](https://github.com/PyCQA/pylint/compare/v2.15.10...v2.16.2) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Lint --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
b4068dac56
commit
5997401e9e
4 changed files with 9 additions and 10 deletions
|
@ -174,10 +174,9 @@ class ArrayInitializer(Expression):
|
||||||
if not self.args:
|
if not self.args:
|
||||||
return "{}"
|
return "{}"
|
||||||
if self.multiline:
|
if self.multiline:
|
||||||
cpp = "{\n"
|
cpp = "{\n "
|
||||||
for arg in self.args:
|
cpp += ",\n ".join(str(arg) for arg in self.args)
|
||||||
cpp += f" {arg},\n"
|
cpp += ",\n}"
|
||||||
cpp += "}"
|
|
||||||
else:
|
else:
|
||||||
cpp = f"{{{', '.join(str(arg) for arg in self.args)}}}"
|
cpp = f"{{{', '.join(str(arg) for arg in self.args)}}}"
|
||||||
return cpp
|
return cpp
|
||||||
|
|
|
@ -753,7 +753,7 @@ class BoardsRequestHandler(BaseHandler):
|
||||||
platform_boards = {key: val[const.KEY_NAME] for key, val in boards.items()}
|
platform_boards = {key: val[const.KEY_NAME] for key, val in boards.items()}
|
||||||
# sort by board title
|
# sort by board title
|
||||||
boards_items = sorted(platform_boards.items(), key=lambda item: item[1])
|
boards_items = sorted(platform_boards.items(), key=lambda item: item[1])
|
||||||
output = [dict(items=dict(boards_items))]
|
output = [{"items": dict(boards_items)}]
|
||||||
|
|
||||||
self.set_header("content-type", "application/json")
|
self.set_header("content-type", "application/json")
|
||||||
self.write(json.dumps(output))
|
self.write(json.dumps(output))
|
||||||
|
|
|
@ -167,10 +167,10 @@ def _lookup_module(domain):
|
||||||
except Exception: # pylint: disable=broad-except
|
except Exception: # pylint: disable=broad-except
|
||||||
_LOGGER.error("Unable to load component %s:", domain, exc_info=True)
|
_LOGGER.error("Unable to load component %s:", domain, exc_info=True)
|
||||||
return None
|
return None
|
||||||
else:
|
|
||||||
manif = ComponentManifest(module)
|
manif = ComponentManifest(module)
|
||||||
_COMPONENT_CACHE[domain] = manif
|
_COMPONENT_CACHE[domain] = manif
|
||||||
return manif
|
return manif
|
||||||
|
|
||||||
|
|
||||||
def get_component(domain):
|
def get_component(domain):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
pylint==2.15.10
|
pylint==2.16.2
|
||||||
flake8==6.0.0 # also change in .pre-commit-config.yaml when updating
|
flake8==6.0.0 # also change in .pre-commit-config.yaml when updating
|
||||||
black==23.1.0 # also change in .pre-commit-config.yaml when updating
|
black==23.1.0 # also change in .pre-commit-config.yaml when updating
|
||||||
pyupgrade==3.3.1 # also change in .pre-commit-config.yaml when updating
|
pyupgrade==3.3.1 # also change in .pre-commit-config.yaml when updating
|
||||||
|
|
Loading…
Reference in a new issue