Skip to content

Commit

Permalink
Bump pylint from 2.13.9 to 2.14.1 (#969)
Browse files Browse the repository at this point in the history
* 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](pylint-dev/pylint@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] <[email protected]>

* 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](pylint-dev/pylint@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] <[email protected]>

* fix pylint

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: farmio <[email protected]>
  • Loading branch information
dependabot[bot] and farmio authored Jun 7, 2022
1 parent fa4788d commit c532250
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ reports = "no"
# fixme - TODO
disable = [
"format",
"abstract-class-little-used",
"abstract-method",
"cyclic-import",
"duplicate-code",
Expand All @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion requirements/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions xknx/devices/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -67,7 +67,7 @@ def _iter_remote_values(self) -> Iterator[RemoteValue[Any, Any]]:
# yield from (<list all used RemoteValue instances>)
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 ()

Expand Down
2 changes: 1 addition & 1 deletion xknx/remote_value/remote_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c532250

Please sign in to comment.