From b493ad9534b18f8ecbef707587d0e598359f98b1 Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Mon, 5 May 2025 12:22:45 -0500 Subject: [PATCH 1/4] Update pep8-naming in poetry.lock --- poetry.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index 10033275a..0a53718de 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1628,13 +1628,13 @@ setuptools = "*" [[package]] name = "pep8-naming" -version = "0.14.1" +version = "0.15.0" description = "Check PEP-8 naming conventions, plugin for flake8" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" files = [ - {file = "pep8-naming-0.14.1.tar.gz", hash = "sha256:1ef228ae80875557eb6c1549deafed4dabbf3261cfcafa12f773fe0db9be8a36"}, - {file = "pep8_naming-0.14.1-py3-none-any.whl", hash = "sha256:63f514fc777d715f935faf185dedd679ab99526a7f2f503abb61587877f7b1c5"}, + {file = "pep8_naming-0.15.0-py3-none-any.whl", hash = "sha256:2ce36937ff0421d871a634f4a0c2af06f994fe22c9055ea9813ca72d562754da"}, + {file = "pep8_naming-0.15.0.tar.gz", hash = "sha256:a637ee5144f7585c800b1fc6eeb996fa35a2ef0f2690880a9e1b29cb9f6e8359"}, ] [package.dependencies] From 603e32b0ee2630f7a9787223b08539466f939622 Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Mon, 5 May 2025 12:23:13 -0500 Subject: [PATCH 2/4] tests: Work around pep8-naming typevar underscore bug --- tests/component/test_stream_readers_di.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/component/test_stream_readers_di.py b/tests/component/test_stream_readers_di.py index b60537a74..0084d7bcd 100644 --- a/tests/component/test_stream_readers_di.py +++ b/tests/component/test_stream_readers_di.py @@ -179,7 +179,9 @@ def _bool_array_to_int(bool_array: numpy.typing.NDArray[numpy.bool_]) -> int: return result -_D = TypeVar("_D", bound=numpy.generic, covariant=True) +_D = TypeVar( # noqa: N808 - https://github.com/PyCQA/pep8-naming/issues/245 + "_D", bound=numpy.generic +) def _read_and_copy( From e732acda44f3df78bbff3cffe05878f3cd19e82c Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Mon, 5 May 2025 16:49:41 -0500 Subject: [PATCH 3/4] Update poetry.lock --- poetry.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index 0a53718de..003916d2d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1628,13 +1628,13 @@ setuptools = "*" [[package]] name = "pep8-naming" -version = "0.15.0" +version = "0.15.1" description = "Check PEP-8 naming conventions, plugin for flake8" optional = false python-versions = ">=3.9" files = [ - {file = "pep8_naming-0.15.0-py3-none-any.whl", hash = "sha256:2ce36937ff0421d871a634f4a0c2af06f994fe22c9055ea9813ca72d562754da"}, - {file = "pep8_naming-0.15.0.tar.gz", hash = "sha256:a637ee5144f7585c800b1fc6eeb996fa35a2ef0f2690880a9e1b29cb9f6e8359"}, + {file = "pep8_naming-0.15.1-py3-none-any.whl", hash = "sha256:eb63925e7fd9e028c7f7ee7b1e413ec03d1ee5de0e627012102ee0222c273c86"}, + {file = "pep8_naming-0.15.1.tar.gz", hash = "sha256:f6f4a499aba2deeda93c1f26ccc02f3da32b035c8b2db9696b730ef2c9639d29"}, ] [package.dependencies] From 066f1aae617bc24cf7ac930030dda3730f3c15b8 Mon Sep 17 00:00:00 2001 From: Brad Keryan Date: Mon, 5 May 2025 16:51:14 -0500 Subject: [PATCH 4/4] tests: Remove noqa for typevar --- tests/component/test_stream_readers_di.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/component/test_stream_readers_di.py b/tests/component/test_stream_readers_di.py index 0084d7bcd..4ff43beb7 100644 --- a/tests/component/test_stream_readers_di.py +++ b/tests/component/test_stream_readers_di.py @@ -179,9 +179,7 @@ def _bool_array_to_int(bool_array: numpy.typing.NDArray[numpy.bool_]) -> int: return result -_D = TypeVar( # noqa: N808 - https://github.com/PyCQA/pep8-naming/issues/245 - "_D", bound=numpy.generic -) +_D = TypeVar("_D", bound=numpy.generic) def _read_and_copy(