From eb2676b4584fae4c8ddcf7b44a1d049301046036 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 13:09:24 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Update=20dependency=20?= =?UTF-8?q?pylint=20to=20v3.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poetry.lock | 16 ++++++++-------- pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/poetry.lock b/poetry.lock index 582cb079..185514ae 100644 --- a/poetry.lock +++ b/poetry.lock @@ -154,13 +154,13 @@ pytest-asyncio = {version = ">=0.17.0", markers = "python_version >= \"3.7\""} [[package]] name = "astroid" -version = "3.1.0" +version = "3.2.0" description = "An abstract syntax tree for Python with inference support." optional = false python-versions = ">=3.8.0" files = [ - {file = "astroid-3.1.0-py3-none-any.whl", hash = "sha256:951798f922990137ac090c53af473db7ab4e70c770e6d7fae0cec59f74411819"}, - {file = "astroid-3.1.0.tar.gz", hash = "sha256:ac248253bfa4bd924a0de213707e7ebeeb3138abeb48d798784ead1e56d419d4"}, + {file = "astroid-3.2.0-py3-none-any.whl", hash = "sha256:16ee8ca5c75ac828783028cc1f967777f0e507c6886a295ad143e0f405b975a2"}, + {file = "astroid-3.2.0.tar.gz", hash = "sha256:f7f829f8506ade59f1b3c6c93d8fac5b1ebc721685fa9af23e9794daf1d450a3"}, ] [[package]] @@ -1481,17 +1481,17 @@ windows-terminal = ["colorama (>=0.4.6)"] [[package]] name = "pylint" -version = "3.1.1" +version = "3.2.0" description = "python code static checker" optional = false python-versions = ">=3.8.0" files = [ - {file = "pylint-3.1.1-py3-none-any.whl", hash = "sha256:862eddf25dab42704c5f06d3688b8bc19ef4c99ad8a836b6ff260a3b2fbafee1"}, - {file = "pylint-3.1.1.tar.gz", hash = "sha256:c7c2652bf8099c7fb7a63bc6af5c5f8f7b9d7b392fa1d320cb020e222aff28c2"}, + {file = "pylint-3.2.0-py3-none-any.whl", hash = "sha256:9f20c05398520474dac03d7abb21ab93181f91d4c110e1e0b32bc0d016c34fa4"}, + {file = "pylint-3.2.0.tar.gz", hash = "sha256:ad8baf17c8ea5502f23ae38d7c1b7ec78bd865ce34af9a0b986282e2611a8ff2"}, ] [package.dependencies] -astroid = ">=3.1.0,<=3.2.0-dev0" +astroid = ">=3.2.0,<=3.3.0-dev0" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} dill = [ {version = ">=0.3.7", markers = "python_version >= \"3.12\""}, @@ -2067,4 +2067,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "3aeeb2938cdda3209a29657a53bd04d8026a9fcdde9b22527a9ac7db3751f10d" +content-hash = "9306db31c1c1a793c36082b5a9039b1e5bc9f84fda42dc159ee2ca5d2d178e4c" diff --git a/pyproject.toml b/pyproject.toml index e1988d78..61113f63 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ coverage = {version = "7.5.1", extras = ["toml"]} mypy = "1.10.0" pre-commit = "3.7.1" pre-commit-hooks = "4.6.0" -pylint = "3.1.1" +pylint = "3.2.0" pytest = "7.4.4" pytest-asyncio = "0.23.6" pytest-cov = "5.0.0" From 0b16c66c997db1fb223d361b2113f58e54055e2c Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 14 May 2024 17:42:53 +0200 Subject: [PATCH 2/2] Ignore a few --- src/radios/radio_browser.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/radios/radio_browser.py b/src/radios/radio_browser.py index b61dd6fe..7131bf8a 100644 --- a/src/radios/radio_browser.py +++ b/src/radios/radio_browser.py @@ -178,7 +178,7 @@ async def countries( # noqa: PLR0913 ) countries = orjson.loads(countries_data) # pylint: disable=no-member - for country in countries: + for country in countries: # pylint: disable=not-an-iterable country["code"] = country["name"] # https://github.com/frenck/python-radios/issues/19 if country["name"] == "XK": @@ -190,6 +190,7 @@ async def countries( # noqa: PLR0913 if order == Order.NAME: countries.sort(key=lambda country: country["name"]) + # pylint: disable-next=not-an-iterable return [Country.from_dict(country) for country in countries] # pylint: disable-next=too-many-arguments @@ -229,9 +230,10 @@ async def languages( # noqa: PLR0913 ) languages = orjson.loads(languages_data) # pylint: disable=no-member - for language in languages: + for language in languages: # pylint: disable=not-an-iterable language["name"] = language["name"].title() + # pylint: disable-next=not-an-iterable return [Language.from_dict(language) for language in languages] # pylint: disable-next=too-many-arguments, too-many-locals @@ -307,6 +309,7 @@ async def search( # noqa: PLR0913 }, ) stations = orjson.loads(stations_data) # pylint: disable=no-member + # pylint: disable-next=not-an-iterable return [Station.from_dict(station) for station in stations] async def station(self, *, uuid: str) -> Station | None: @@ -376,6 +379,7 @@ async def stations( # noqa: PLR0913 }, ) stations = orjson.loads(stations_data) # pylint: disable=no-member + # pylint: disable-next=not-an-iterable return [Station.from_dict(station) for station in stations] # pylint: disable-next=too-many-arguments @@ -414,6 +418,7 @@ async def tags( # noqa: PLR0913 }, ) tags = orjson.loads(tags_data) # pylint: disable=no-member + # pylint: disable-next=not-an-iterable return [Tag.from_dict(tag) for tag in tags] async def close(self) -> None: