mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Update pytest warnings filter (#122459)
This commit is contained in:
parent
5727f30026
commit
ff467463f8
@ -458,16 +458,14 @@ filterwarnings = [
|
|||||||
# Ignore custom pytest marks
|
# Ignore custom pytest marks
|
||||||
"ignore:Unknown pytest.mark.disable_autouse_fixture:pytest.PytestUnknownMarkWarning:tests.components.met",
|
"ignore:Unknown pytest.mark.disable_autouse_fixture:pytest.PytestUnknownMarkWarning:tests.components.met",
|
||||||
"ignore:Unknown pytest.mark.dataset:pytest.PytestUnknownMarkWarning:tests.components.screenlogic",
|
"ignore:Unknown pytest.mark.dataset:pytest.PytestUnknownMarkWarning:tests.components.screenlogic",
|
||||||
# https://github.com/rokam/sunweg/blob/3.0.1/sunweg/plant.py#L96 - v3.0.1 - 2024-05-29
|
# https://github.com/rokam/sunweg/blob/3.0.2/sunweg/plant.py#L96 - v3.0.2 - 2024-07-10
|
||||||
"ignore:The '(kwh_per_kwp|performance_rate)' property is deprecated and will return 0:DeprecationWarning:tests.components.sunweg.test_init",
|
"ignore:The '(kwh_per_kwp|performance_rate)' property is deprecated and will return 0:DeprecationWarning:tests.components.sunweg.test_init",
|
||||||
|
|
||||||
# -- design choice 3rd party
|
# -- design choice 3rd party
|
||||||
# https://github.com/gwww/elkm1/blob/2.2.7/elkm1_lib/util.py#L8-L19
|
# https://github.com/gwww/elkm1/blob/2.2.7/elkm1_lib/util.py#L8-L19
|
||||||
"ignore:ssl.TLSVersion.TLSv1 is deprecated:DeprecationWarning:elkm1_lib.util",
|
"ignore:ssl.TLSVersion.TLSv1 is deprecated:DeprecationWarning:elkm1_lib.util",
|
||||||
# https://github.com/michaeldavie/env_canada/blob/v0.6.2/env_canada/ec_cache.py
|
|
||||||
"ignore:Inheritance class CacheClientSession from ClientSession is discouraged:DeprecationWarning:env_canada.ec_cache",
|
|
||||||
# https://github.com/allenporter/ical/pull/215
|
# https://github.com/allenporter/ical/pull/215
|
||||||
# https://github.com/allenporter/ical/blob/8.0.0/ical/util.py#L20-L22
|
# https://github.com/allenporter/ical/blob/8.1.1/ical/util.py#L21-L23
|
||||||
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:ical.util",
|
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:ical.util",
|
||||||
# https://github.com/bachya/regenmaschine/blob/2024.03.0/regenmaschine/client.py#L52
|
# https://github.com/bachya/regenmaschine/blob/2024.03.0/regenmaschine/client.py#L52
|
||||||
"ignore:ssl.TLSVersion.SSLv3 is deprecated:DeprecationWarning:regenmaschine.client",
|
"ignore:ssl.TLSVersion.SSLv3 is deprecated:DeprecationWarning:regenmaschine.client",
|
||||||
@ -479,11 +477,11 @@ filterwarnings = [
|
|||||||
"ignore:Deprecated call to `pkg_resources.declare_namespace\\(('azure'|'google.*'|'pywinusb'|'repoze'|'xbox'|'zope')\\)`:DeprecationWarning:pkg_resources",
|
"ignore:Deprecated call to `pkg_resources.declare_namespace\\(('azure'|'google.*'|'pywinusb'|'repoze'|'xbox'|'zope')\\)`:DeprecationWarning:pkg_resources",
|
||||||
|
|
||||||
# -- tracked upstream / open PRs
|
# -- tracked upstream / open PRs
|
||||||
|
# https://github.com/ronf/asyncssh/issues/674 - v2.15.0
|
||||||
|
"ignore:ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from this module in 48.0.0:UserWarning:asyncssh.crypto.cipher",
|
||||||
|
"ignore:TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0:UserWarning:asyncssh.crypto.cipher",
|
||||||
# https://github.com/certbot/certbot/issues/9828 - v2.10.0
|
# https://github.com/certbot/certbot/issues/9828 - v2.10.0
|
||||||
"ignore:X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography:DeprecationWarning:acme.crypto_util",
|
"ignore:X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography:DeprecationWarning:acme.crypto_util",
|
||||||
# https://github.com/influxdata/influxdb-client-python/issues/603 - v1.42.0
|
|
||||||
# https://github.com/influxdata/influxdb-client-python/pull/652
|
|
||||||
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:influxdb_client.client.write.point",
|
|
||||||
# https://github.com/beetbox/mediafile/issues/67 - v0.12.0
|
# https://github.com/beetbox/mediafile/issues/67 - v0.12.0
|
||||||
"ignore:'imghdr' is deprecated and slated for removal in Python 3.13:DeprecationWarning:mediafile",
|
"ignore:'imghdr' is deprecated and slated for removal in Python 3.13:DeprecationWarning:mediafile",
|
||||||
# https://github.com/foxel/python_ndms2_client/issues/6 - v0.1.3
|
# https://github.com/foxel/python_ndms2_client/issues/6 - v0.1.3
|
||||||
@ -501,8 +499,9 @@ filterwarnings = [
|
|||||||
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:devialet.devialet_api",
|
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:devialet.devialet_api",
|
||||||
# https://github.com/httplib2/httplib2/pull/226 - >=0.21.0
|
# https://github.com/httplib2/httplib2/pull/226 - >=0.21.0
|
||||||
"ignore:ssl.PROTOCOL_TLS is deprecated:DeprecationWarning:httplib2",
|
"ignore:ssl.PROTOCOL_TLS is deprecated:DeprecationWarning:httplib2",
|
||||||
# https://github.com/jaraco/jaraco.abode/commit/9e3e789efc96cddcaa15f920686bbeb79a7469e0 - update jaraco.abode to >=5.1.0
|
# https://github.com/influxdata/influxdb-client-python/issues/603 >1.45.0
|
||||||
"ignore:`jaraco.functools.call_aside` is deprecated, use `jaraco.functools.invoke` instead:DeprecationWarning:jaraco.abode.helpers.timeline",
|
# https://github.com/influxdata/influxdb-client-python/pull/652
|
||||||
|
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:influxdb_client.client.write.point",
|
||||||
# https://github.com/majuss/lupupy/pull/15 - >0.3.2
|
# https://github.com/majuss/lupupy/pull/15 - >0.3.2
|
||||||
"ignore:\"is not\" with 'str' literal. Did you mean \"!=\"?:SyntaxWarning:.*lupupy.devices.alarm",
|
"ignore:\"is not\" with 'str' literal. Did you mean \"!=\"?:SyntaxWarning:.*lupupy.devices.alarm",
|
||||||
# https://github.com/nextcord/nextcord/pull/1095 - >2.6.1
|
# https://github.com/nextcord/nextcord/pull/1095 - >2.6.1
|
||||||
@ -523,10 +522,6 @@ filterwarnings = [
|
|||||||
"ignore:invalid escape sequence:SyntaxWarning:.*stringcase",
|
"ignore:invalid escape sequence:SyntaxWarning:.*stringcase",
|
||||||
# https://github.com/mvantellingen/python-zeep/pull/1364 - >4.2.1
|
# https://github.com/mvantellingen/python-zeep/pull/1364 - >4.2.1
|
||||||
"ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning:zeep.utils",
|
"ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning:zeep.utils",
|
||||||
# https://github.com/timmo001/system-bridge-connector/pull/27 - >=4.1.0
|
|
||||||
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:systembridgeconnector.version",
|
|
||||||
# https://github.com/jschlyter/ttls/commit/d64f1251397b8238cf6a35bea64784de25e3386c - >=1.8.1
|
|
||||||
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:ttls",
|
|
||||||
|
|
||||||
# -- fixed for Python 3.13
|
# -- fixed for Python 3.13
|
||||||
# https://github.com/rhasspy/wyoming/commit/e34af30d455b6f2bb9e5cfb25fad8d276914bc54 - >=1.4.2
|
# https://github.com/rhasspy/wyoming/commit/e34af30d455b6f2bb9e5cfb25fad8d276914bc54 - >=1.4.2
|
||||||
@ -560,6 +555,9 @@ filterwarnings = [
|
|||||||
# https://pypi.org/project/aprslib/ - v0.7.2 - 2022-07-10
|
# https://pypi.org/project/aprslib/ - v0.7.2 - 2022-07-10
|
||||||
"ignore:invalid escape sequence:SyntaxWarning:.*aprslib.parsing.common",
|
"ignore:invalid escape sequence:SyntaxWarning:.*aprslib.parsing.common",
|
||||||
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:aprslib.parsing.common",
|
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:aprslib.parsing.common",
|
||||||
|
# https://pypi.org/project/panasonic-viera/ - v0.4.2 - 2024-04-24
|
||||||
|
# https://github.com/florianholzapfel/panasonic-viera/blob/0.4.2/panasonic_viera/__init__.py#L789
|
||||||
|
"ignore:invalid escape sequence:SyntaxWarning:.*panasonic_viera",
|
||||||
# https://pypi.org/project/pyblackbird/ - v0.6 - 2023-03-15
|
# https://pypi.org/project/pyblackbird/ - v0.6 - 2023-03-15
|
||||||
# https://github.com/koolsb/pyblackbird/pull/9 -> closed
|
# https://github.com/koolsb/pyblackbird/pull/9 -> closed
|
||||||
"ignore:invalid escape sequence:SyntaxWarning:.*pyblackbird",
|
"ignore:invalid escape sequence:SyntaxWarning:.*pyblackbird",
|
||||||
@ -584,9 +582,14 @@ filterwarnings = [
|
|||||||
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:pybotvac.version",
|
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:pybotvac.version",
|
||||||
# https://github.com/home-assistant-ecosystem/python-mystrom/blob/2.2.0/pymystrom/__init__.py#L10 - v2.2.0 - 2023-05-21
|
# https://github.com/home-assistant-ecosystem/python-mystrom/blob/2.2.0/pymystrom/__init__.py#L10 - v2.2.0 - 2023-05-21
|
||||||
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:pymystrom",
|
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:pymystrom",
|
||||||
# https://pypi.org/project/velbus-aio/ - v2024.4.1 - 2024-04-07
|
# https://pypi.org/project/velbus-aio/ - v2024.7.5 - 2024-07-05
|
||||||
# https://github.com/Cereal2nd/velbus-aio/blob/2024.4.1/velbusaio/handler.py#L12
|
# https://github.com/Cereal2nd/velbus-aio/blob/2024.7.5/velbusaio/handler.py#L22
|
||||||
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:velbusaio.handler",
|
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:velbusaio.handler",
|
||||||
|
# - pyOpenSSL v24.2.1
|
||||||
|
# https://pypi.org/project/acme/ - v2.11.0 - 2024-06-06
|
||||||
|
"ignore:CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography:DeprecationWarning:acme.crypto_util",
|
||||||
|
# https://pypi.org/project/josepy/ - v1.14.0 - 2023-11-01
|
||||||
|
"ignore:CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography:DeprecationWarning:josepy.util",
|
||||||
|
|
||||||
# -- Python 3.13
|
# -- Python 3.13
|
||||||
# HomeAssistant
|
# HomeAssistant
|
||||||
@ -658,10 +661,6 @@ filterwarnings = [
|
|||||||
"ignore:\"is\" with 'int' literal. Did you mean \"==\"?:SyntaxWarning:.*pyiss",
|
"ignore:\"is\" with 'int' literal. Did you mean \"==\"?:SyntaxWarning:.*pyiss",
|
||||||
# https://pypi.org/project/PyMetEireann/ - v2021.8.0 - 2021-08-16
|
# https://pypi.org/project/PyMetEireann/ - v2021.8.0 - 2021-08-16
|
||||||
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:meteireann",
|
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:meteireann",
|
||||||
# https://pypi.org/project/pyowm/ - v3.3.0 - 2022-02-14
|
|
||||||
# https://github.com/csparpa/pyowm/issues/435
|
|
||||||
# https://github.com/csparpa/pyowm/blob/3.3.0/pyowm/commons/cityidregistry.py#L7
|
|
||||||
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:pyowm.commons.cityidregistry",
|
|
||||||
# https://pypi.org/project/PyPasser/ - v0.0.5 - 2021-10-21
|
# https://pypi.org/project/PyPasser/ - v0.0.5 - 2021-10-21
|
||||||
"ignore:invalid escape sequence:SyntaxWarning:.*pypasser.utils",
|
"ignore:invalid escape sequence:SyntaxWarning:.*pypasser.utils",
|
||||||
# https://pypi.org/project/pyqwikswitch/ - v0.94 - 2019-08-19
|
# https://pypi.org/project/pyqwikswitch/ - v0.94 - 2019-08-19
|
||||||
@ -671,8 +670,6 @@ filterwarnings = [
|
|||||||
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:rx.internal.constants",
|
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:rx.internal.constants",
|
||||||
# https://pypi.org/project/rxv/ - v0.7.0 - 2021-10-10
|
# https://pypi.org/project/rxv/ - v0.7.0 - 2021-10-10
|
||||||
"ignore:defusedxml.cElementTree is deprecated, import from defusedxml.ElementTree instead:DeprecationWarning:rxv.ssdp",
|
"ignore:defusedxml.cElementTree is deprecated, import from defusedxml.ElementTree instead:DeprecationWarning:rxv.ssdp",
|
||||||
# https://pypi.org/project/webrtcvad/ - v2.0.10 - 2017-01-08
|
|
||||||
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:webrtcvad",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user