Bump pylint from 2.8.2 to 2.9.4 (#2047)

* Bump pylint from 2.8.2 to 2.9.4

Bumps [pylint](https://github.com/PyCQA/pylint) from 2.8.2 to 2.9.4.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.8.2...v2.9.4)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix up functionality needed for latest pylint (#2049)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sean Vig <sean.v.775@gmail.com>
This commit is contained in:
dependabot[bot] 2021-07-21 14:40:09 +12:00 committed by GitHub
parent 3e65e6c69a
commit fc42f14448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,4 @@
from abc import ABC, abstractmethod, abstractproperty from abc import ABC, abstractmethod
from typing import Dict, Any from typing import Dict, Any
import contextvars import contextvars
@ -14,7 +14,8 @@ from esphome.core import CORE
class FinalValidateConfig(ABC): class FinalValidateConfig(ABC):
@abstractproperty @property
@abstractmethod
def data(self) -> Dict[str, Any]: def data(self) -> Dict[str, Any]:
"""A dictionary that can be used by post validation functions to store """A dictionary that can be used by post validation functions to store
global data during the validation phase. Each component should store its global data during the validation phase. Each component should store its

View file

@ -411,17 +411,19 @@ class ESPHomeDumper(yaml.SafeDumper): # pylint: disable=too-many-ancestors
return self.represent_secret(value) return self.represent_secret(value)
return self.represent_scalar(tag="tag:yaml.org,2002:str", value=str(value)) return self.represent_scalar(tag="tag:yaml.org,2002:str", value=str(value))
# pylint: disable=arguments-differ # pylint: disable=arguments-renamed
def represent_bool(self, value): def represent_bool(self, value):
return self.represent_scalar( return self.represent_scalar(
"tag:yaml.org,2002:bool", "true" if value else "false" "tag:yaml.org,2002:bool", "true" if value else "false"
) )
# pylint: disable=arguments-renamed
def represent_int(self, value): def represent_int(self, value):
if is_secret(value): if is_secret(value):
return self.represent_secret(value) return self.represent_secret(value)
return self.represent_scalar(tag="tag:yaml.org,2002:int", value=str(value)) return self.represent_scalar(tag="tag:yaml.org,2002:int", value=str(value))
# pylint: disable=arguments-renamed
def represent_float(self, value): def represent_float(self, value):
if is_secret(value): if is_secret(value):
return self.represent_secret(value) return self.represent_secret(value)

View file

@ -1,4 +1,4 @@
pylint==2.8.2 pylint==2.9.4
flake8==3.9.2 flake8==3.9.2
black==21.7b0 black==21.7b0
pexpect==4.8.0 pexpect==4.8.0