From c53225009e63887c49e189cf2789f00b34744700 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 Jun 2022 23:57:09 +0200 Subject: [PATCH] Bump pylint from 2.13.9 to 2.14.1 (#969) * Bump pylint from 2.13.9 to 2.14.1 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.13.9 to 2.14.1. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](https://github.com/PyCQA/pylint/compare/v2.13.9...v2.14.1) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Bump pylint from 2.13.9 to 2.14.1 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.13.9 to 2.14.1. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](https://github.com/PyCQA/pylint/compare/v2.13.9...v2.14.1) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix pylint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: farmio --- pyproject.toml | 4 +--- requirements/testing.txt | 2 +- tox.ini | 2 +- xknx/devices/device.py | 4 ++-- xknx/remote_value/remote_value.py | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6dad31b72..50c488c78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,6 @@ reports = "no" # fixme - TODO disable = [ "format", - "abstract-class-little-used", "abstract-method", "cyclic-import", "duplicate-code", @@ -61,8 +60,7 @@ disable = [ "unused-argument", "wrong-import-order", ] -# disabled for tests via command line options in Makefile: -# - no-self-use +# disabled for tests via command line options in tox.ini: # - protected-access # - abstract-class-instantiated enable = [ diff --git a/requirements/testing.txt b/requirements/testing.txt index 4c7f9c2b8..c0126a17d 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -4,7 +4,7 @@ isort==5.10.1 flake8==4.0.1 flake8-isort==4.1.1 pydocstyle==6.1.1 -pylint==2.13.9 +pylint==2.14.1 pytest==7.1.2 pytest-asyncio==0.18.3 pytest-cov==3.0.0 diff --git a/tox.ini b/tox.ini index c7b45bc07..5f25a80bf 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ commands = basepython = python3 commands = pylint --jobs=0 xknx examples - pylint --jobs=0 --disable=no-self-use,protected-access,abstract-class-instantiated test + pylint --jobs=0 --disable=protected-access,abstract-class-instantiated test [testenv:typing] basepython = python3 diff --git a/xknx/devices/device.py b/xknx/devices/device.py index aa0d02c62..8b6713d4d 100644 --- a/xknx/devices/device.py +++ b/xknx/devices/device.py @@ -55,7 +55,7 @@ def shutdown(self) -> None: self.xknx.devices.remove(self) self.device_updated_cbs = [] for remote_value in self._iter_remote_values(): - remote_value.__del__() + remote_value.__del__() # pylint: disable=unnecessary-dunder-call for task in self._iter_tasks(): if task: self.xknx.task_registry.unregister(task.name) @@ -67,7 +67,7 @@ def _iter_remote_values(self) -> Iterator[RemoteValue[Any, Any]]: # yield from () yield from () - def _iter_tasks(self) -> Iterator[Task | None]: # pylint: disable=no-self-use + def _iter_tasks(self) -> Iterator[Task | None]: """Iterate the device tasks.""" yield from () diff --git a/xknx/remote_value/remote_value.py b/xknx/remote_value/remote_value.py index 7cda88290..990c50b51 100644 --- a/xknx/remote_value/remote_value.py +++ b/xknx/remote_value/remote_value.py @@ -271,7 +271,7 @@ def group_addr_str(self) -> str: f"<{self.group_address}, " f"{self.group_address_state}, " f"{list(map(str, self.passive_group_addresses))}, " - f"{self.value.__repr__()} />" + f"{self.value!r} />" ) def __str__(self) -> str: