Skip to content

Commit 513045e

Browse files
authored
Update pytest warnings filter (home-assistant#147132)
1 parent 0db6520 commit 513045e

File tree

1 file changed

+26
-29
lines changed

1 file changed

+26
-29
lines changed

pyproject.toml

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -527,15 +527,11 @@ filterwarnings = [
527527

528528
# -- fixed, waiting for release / update
529529
# https://github.com/DataDog/datadogpy/pull/290 - >=0.23.0
530-
"ignore:invalid escape sequence:SyntaxWarning:.*datadog.dogstatsd.base",
530+
"ignore:.*invalid escape sequence:SyntaxWarning:.*datadog.dogstatsd.base",
531531
# https://github.com/DataDog/datadogpy/pull/566/files - >=0.37.0
532532
"ignore:pkg_resources is deprecated as an API:UserWarning:datadog.util.compat",
533533
# https://github.com/httplib2/httplib2/pull/226 - >=0.21.0
534534
"ignore:ssl.PROTOCOL_TLS is deprecated:DeprecationWarning:httplib2",
535-
# https://github.com/majuss/lupupy/pull/15 - >0.3.2
536-
"ignore:\"is not\" with 'str' literal. Did you mean \"!=\"?:SyntaxWarning:.*lupupy.devices.alarm",
537-
# https://github.com/nextcord/nextcord/pull/1095 - >=3.0.0
538-
"ignore:pkg_resources is deprecated as an API:UserWarning:nextcord.health_check",
539535
# https://github.com/vacanza/python-holidays/discussions/1800 - >1.0.0
540536
"ignore::DeprecationWarning:holidays",
541537
# https://github.com/ReactiveX/RxPY/pull/716 - >4.0.4
@@ -549,7 +545,7 @@ filterwarnings = [
549545
# https://github.com/rytilahti/python-miio/pull/1993 - >0.6.0.dev0
550546
"ignore:functools.partial will be a method descriptor in future Python versions; wrap it in enum.member\\(\\) if you want to preserve the old behavior:FutureWarning:miio.miot_device",
551547
# https://github.com/okunishinishi/python-stringcase/commit/6a5c5bbd3fe5337862abc7fd0853a0f36e18b2e1 - >1.2.0
552-
"ignore:invalid escape sequence:SyntaxWarning:.*stringcase",
548+
"ignore:.*invalid escape sequence:SyntaxWarning:.*stringcase",
553549
# https://github.com/xchwarze/samsung-tv-ws-api/pull/151 - >2.7.2 - 2024-12-06 # wrong stacklevel in aiohttp
554550
"ignore:verify_ssl is deprecated, use ssl=False instead:DeprecationWarning:aiohttp.client",
555551

@@ -572,47 +568,53 @@ filterwarnings = [
572568
# https://pypi.org/project/pyeconet/ - v0.1.28 - 2025-02-15
573569
# https://github.com/w1ll1am23/pyeconet/blob/v0.1.28/src/pyeconet/api.py#L38
574570
"ignore:ssl.PROTOCOL_TLS is deprecated:DeprecationWarning:pyeconet.api",
575-
# https://github.com/thecynic/pylutron - v0.2.16 - 2024-10-22
571+
# https://github.com/thecynic/pylutron - v0.2.18 - 2025-04-15
576572
"ignore:setDaemon\\(\\) is deprecated, set the daemon attribute instead:DeprecationWarning:pylutron",
577573
# https://pypi.org/project/PyMetEireann/ - v2024.11.0 - 2024-11-23
578574
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:meteireann",
579575
# https://github.com/pschmitt/pynuki/blob/1.6.3/pynuki/utils.py#L21 - v1.6.3 - 2024-02-24
580576
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:pynuki.utils",
581-
# https://github.com/lextudio/pysnmp/blob/v7.1.17/pysnmp/smi/compiler.py#L23-L31 - v7.1.17 - 2025-03-19
577+
# https://github.com/lextudio/pysnmp/blob/v7.1.21/pysnmp/smi/compiler.py#L23-L31 - v7.1.21 - 2025-06-19
582578
"ignore:smiV1Relaxed is deprecated. Please use smi_v1_relaxed instead:DeprecationWarning:pysnmp.smi.compiler",
583579
"ignore:getReadersFromUrls is deprecated. Please use get_readers_from_urls instead:DeprecationWarning:pysnmp.smi.compiler",
584-
# https://github.com/Python-roborock/python-roborock/issues/305 - 2.18.0 - 2025-04-06
580+
# https://github.com/Python-roborock/python-roborock/issues/305 - 2.19.0 - 2025-05-13
585581
"ignore:Callback API version 1 is deprecated, update to latest version:DeprecationWarning:roborock.cloud_api",
586-
# https://github.com/Teslemetry/python-tesla-fleet-api - v1.1.1 - 2025-05-29
587-
"ignore:Protobuf gencode .* exactly one major version older than the runtime version 6.* at (car_server|common|errors|keys|managed_charging|signatures|universal_message|vcsec|vehicle):UserWarning:google.protobuf.runtime_version",
588582
# https://github.com/briis/pyweatherflowudp/blob/v1.4.5/pyweatherflowudp/const.py#L20 - v1.4.5 - 2023-10-10
589583
"ignore:This function will be removed in future versions of pint:DeprecationWarning:pyweatherflowudp.const",
590584
# New in aiohttp - v3.9.0
591585
"ignore:It is recommended to use web.AppKey instances for keys:UserWarning:(homeassistant|tests|aiohttp_cors)",
592586
# - SyntaxWarnings
593587
# https://pypi.org/project/aprslib/ - v0.7.2 - 2022-07-10
594-
"ignore:invalid escape sequence:SyntaxWarning:.*aprslib.parsing.common",
588+
"ignore:.*invalid escape sequence:SyntaxWarning:.*aprslib.parsing.common",
595589
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:aprslib.parsing.common",
596590
# https://pypi.org/project/panasonic-viera/ - v0.4.2 - 2024-04-24
597591
# https://github.com/florianholzapfel/panasonic-viera/blob/0.4.2/panasonic_viera/__init__.py#L789
598-
"ignore:invalid escape sequence:SyntaxWarning:.*panasonic_viera",
592+
"ignore:.*invalid escape sequence:SyntaxWarning:.*panasonic_viera",
599593
# https://pypi.org/project/pyblackbird/ - v0.6 - 2023-03-15
600594
# https://github.com/koolsb/pyblackbird/pull/9 -> closed
601-
"ignore:invalid escape sequence:SyntaxWarning:.*pyblackbird",
595+
"ignore:.*invalid escape sequence:SyntaxWarning:.*pyblackbird",
602596
# https://pypi.org/project/pyws66i/ - v1.1 - 2022-04-05
603-
"ignore:invalid escape sequence:SyntaxWarning:.*pyws66i",
597+
"ignore:.*invalid escape sequence:SyntaxWarning:.*pyws66i",
604598
# https://pypi.org/project/sanix/ - v1.0.6 - 2024-05-01
605599
# https://github.com/tomaszsluszniak/sanix_py/blob/v1.0.6/sanix/__init__.py#L42
606-
"ignore:invalid escape sequence:SyntaxWarning:.*sanix",
600+
"ignore:.*invalid escape sequence:SyntaxWarning:.*sanix",
607601
# https://pypi.org/project/sleekxmppfs/ - v1.4.1 - 2022-08-18
608-
"ignore:invalid escape sequence:SyntaxWarning:.*sleekxmppfs.thirdparty.mini_dateutil", # codespell:ignore thirdparty
602+
"ignore:.*invalid escape sequence:SyntaxWarning:.*sleekxmppfs.thirdparty.mini_dateutil", # codespell:ignore thirdparty
609603
# - pkg_resources
604+
# https://pypi.org/project/aiomusiccast/ - v0.14.8 - 2023-03-20
605+
"ignore:pkg_resources is deprecated as an API:UserWarning:aiomusiccast",
610606
# https://github.com/eavanvalkenburg/pysiaalarm/blob/v3.1.1/src/pysiaalarm/data/data.py#L7 - v3.1.1 - 2023-04-17
611607
"ignore:pkg_resources is deprecated as an API:UserWarning:pysiaalarm.data.data",
612-
# https://pypi.org/project/pybotvac/ - v0.0.26 - 2025-02-26
608+
# https://pypi.org/project/pybotvac/ - v0.0.28 - 2025-06-11
613609
"ignore:pkg_resources is deprecated as an API:UserWarning:pybotvac.version",
614610
# https://github.com/home-assistant-ecosystem/python-mystrom/blob/2.2.0/pymystrom/__init__.py#L10 - v2.2.0 - 2023-05-21
615611
"ignore:pkg_resources is deprecated as an API:UserWarning:pymystrom",
612+
# - SyntaxWarning - is with literal
613+
# https://github.com/majuss/lupupy/pull/15 - >0.3.2
614+
# https://pypi.org/project/opuslib/ - v3.0.1 - 2018-01-16
615+
# https://pypi.org/project/plumlightpad/ - v0.0.11 - 2018-10-16
616+
# https://pypi.org/project/pyiss/ - v1.0.1 - 2016-12-19
617+
"ignore:\"is.*\" with '.*' literal:SyntaxWarning:importlib._bootstrap",
616618

617619
# -- New in Python 3.13
618620
# https://github.com/kurtmckee/feedparser/pull/389 - >6.0.11
@@ -628,11 +630,11 @@ filterwarnings = [
628630
# -- Websockets 14.1
629631
# https://websockets.readthedocs.io/en/stable/howto/upgrade.html
630632
"ignore:websockets.legacy is deprecated:DeprecationWarning:websockets.legacy",
631-
# https://github.com/bluecurrent/HomeAssistantAPI
633+
# https://github.com/bluecurrent/HomeAssistantAPI/pull/19 - >=1.2.4
632634
"ignore:websockets.client.connect is deprecated:DeprecationWarning:bluecurrent_api.websocket",
633635
"ignore:websockets.client.WebSocketClientProtocol is deprecated:DeprecationWarning:bluecurrent_api.websocket",
634636
"ignore:websockets.exceptions.InvalidStatusCode is deprecated:DeprecationWarning:bluecurrent_api.websocket",
635-
# https://github.com/graphql-python/gql
637+
# https://github.com/graphql-python/gql/pull/543 - >=4.0.0a0
636638
"ignore:websockets.client.WebSocketClientProtocol is deprecated:DeprecationWarning:gql.transport.websockets_base",
637639

638640
# -- unmaintained projects, last release about 2+ years
@@ -655,21 +657,16 @@ filterwarnings = [
655657
"ignore:ssl.PROTOCOL_TLS is deprecated:DeprecationWarning:lomond.session",
656658
# https://pypi.org/project/oauth2client/ - v4.1.3 - 2018-09-07 (archived)
657659
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:oauth2client.client",
658-
# https://pypi.org/project/opuslib/ - v3.0.1 - 2018-01-16
659-
"ignore:\"is not\" with 'int' literal. Did you mean \"!=\"?:SyntaxWarning:.*opuslib.api.decoder",
660660
# https://pypi.org/project/pilight/ - v0.1.1 - 2016-10-19
661661
"ignore:pkg_resources is deprecated as an API:UserWarning:pilight",
662662
# https://pypi.org/project/plumlightpad/ - v0.0.11 - 2018-10-16
663-
"ignore:invalid escape sequence:SyntaxWarning:.*plumlightpad.plumdiscovery",
664-
"ignore:\"is\" with 'int' literal. Did you mean \"==\"?:SyntaxWarning:.*plumlightpad.(lightpad|logicalload)",
663+
"ignore:.*invalid escape sequence:SyntaxWarning:.*plumlightpad.plumdiscovery",
665664
# https://pypi.org/project/pure-python-adb/ - v0.3.0.dev0 - 2020-08-05
666-
"ignore:invalid escape sequence:SyntaxWarning:.*ppadb",
665+
"ignore:.*invalid escape sequence:SyntaxWarning:.*ppadb",
667666
# https://pypi.org/project/pydub/ - v0.25.1 - 2021-03-10
668-
"ignore:invalid escape sequence:SyntaxWarning:.*pydub.utils",
669-
# https://pypi.org/project/pyiss/ - v1.0.1 - 2016-12-19
670-
"ignore:\"is\" with 'int' literal. Did you mean \"==\"?:SyntaxWarning:.*pyiss",
667+
"ignore:.*invalid escape sequence:SyntaxWarning:.*pydub.utils",
671668
# https://pypi.org/project/PyPasser/ - v0.0.5 - 2021-10-21
672-
"ignore:invalid escape sequence:SyntaxWarning:.*pypasser.utils",
669+
"ignore:.*invalid escape sequence:SyntaxWarning:.*pypasser.utils",
673670
# https://pypi.org/project/pyqwikswitch/ - v0.94 - 2019-08-19
674671
"ignore:client.loop property is deprecated:DeprecationWarning:pyqwikswitch.async_",
675672
"ignore:with timeout\\(\\) is deprecated:DeprecationWarning:pyqwikswitch.async_",

0 commit comments

Comments
 (0)