Skip to content

Commit f06d956

Browse files
authored
Update pytest warnings filter (home-assistant#106234)
1 parent 13504d5 commit f06d956

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

pyproject.toml

+18-21
Original file line numberDiff line numberDiff line change
@@ -435,13 +435,13 @@ filterwarnings = [
435435
"ignore:Unknown pytest.mark.disable_autouse_fixture:pytest.PytestUnknownMarkWarning:tests.components.met",
436436

437437
# -- design choice 3rd party
438-
# https://github.com/gwww/elkm1/blob/2.2.5/elkm1_lib/util.py#L8-L19
438+
# https://github.com/gwww/elkm1/blob/2.2.6/elkm1_lib/util.py#L8-L19
439439
"ignore:ssl.TLSVersion.TLSv1 is deprecated:DeprecationWarning:elkm1_lib.util",
440440
# https://github.com/michaeldavie/env_canada/blob/v0.6.0/env_canada/ec_cache.py
441441
"ignore:Inheritance class CacheClientSession from ClientSession is discouraged:DeprecationWarning:env_canada.ec_cache",
442442
# https://github.com/allenporter/ical/pull/215 - v5.0.0
443443
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:ical.util",
444-
# https://github.com/bachya/regenmaschine/blob/2023.08.0/regenmaschine/client.py#L51
444+
# https://github.com/bachya/regenmaschine/blob/2023.12.0/regenmaschine/client.py#L57
445445
"ignore:ssl.TLSVersion.SSLv3 is deprecated:DeprecationWarning:regenmaschine.client",
446446

447447
# -- Setuptools DeprecationWarnings
@@ -451,10 +451,6 @@ filterwarnings = [
451451
"ignore:Deprecated call to `pkg_resources.declare_namespace\\('google.*'\\)`:DeprecationWarning:google.rpc",
452452

453453
# -- tracked upstream / open PRs
454-
# https://github.com/caronc/apprise/issues/659 - v1.4.5
455-
"ignore:Use setlocale\\(\\), getencoding\\(\\) and getlocale\\(\\) instead:DeprecationWarning:apprise.AppriseLocal",
456-
# https://github.com/kiorky/croniter/issues/49 - v1.4.1
457-
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:croniter.croniter",
458454
# https://github.com/influxdata/influxdb-client-python/issues/603 - v1.37.0
459455
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:influxdb_client.client.write.point",
460456
# https://github.com/beetbox/mediafile/issues/67 - v0.12.0
@@ -464,9 +460,8 @@ filterwarnings = [
464460
"ignore:ssl.PROTOCOL_TLS is deprecated:DeprecationWarning:paho.mqtt.client",
465461
# https://github.com/PythonCharmers/python-future/issues/488 - v0.18.3
466462
"ignore:the imp module is deprecated in favour of importlib and slated for removal in Python 3.12:DeprecationWarning:future.standard_library",
467-
# https://github.com/frenck/python-toonapi/pull/9 - v0.2.1 - 2021-09-23
468-
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:toonapi.models",
469-
# https://github.com/foxel/python_ndms2_client/issues/6 - v0.1.2
463+
# https://github.com/foxel/python_ndms2_client/issues/6 - v0.1.3
464+
# https://github.com/foxel/python_ndms2_client/pull/8
470465
"ignore:'telnetlib' is deprecated and slated for removal in Python 3.13:DeprecationWarning:ndms2_client.connection",
471466
# https://github.com/pytest-dev/pytest-cov/issues/557 - v4.1.0
472467
# Should resolve itself once pytest-xdist 4.0 is released and the option is removed
@@ -475,17 +470,15 @@ filterwarnings = [
475470
# -- fixed, waiting for release / update
476471
# https://github.com/ludeeus/aiogithubapi/pull/208 - >=23.9.0
477472
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:aiogithubapi.namespaces.events",
478-
# https://github.com/bachya/aiopurpleair/pull/200 - >2023.08.0
473+
# https://github.com/bachya/aiopurpleair/pull/200 - >=2023.10.0
479474
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:aiopurpleair.helpers.validators",
480-
# https://github.com/scrapinghub/dateparser/pull/1179 - >1.1.8
481-
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:dateparser.timezone_parser",
482-
# https://github.com/zopefoundation/DateTime/pull/55 - >5.2
483-
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:DateTime.pytz_support",
475+
# https://github.com/kiorky/croniter/pull/52 - >=2.0.0
476+
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:croniter.croniter",
484477
# https://github.com/jaraco/jaraco.abode/commit/9e3e789efc96cddcaa15f920686bbeb79a7469e0 - update jaraco.abode to >=5.1.0
485478
"ignore:`jaraco.functools.call_aside` is deprecated, use `jaraco.functools.invoke` instead:DeprecationWarning:jaraco.abode.helpers.timeline",
486479
# https://github.com/nextcord/nextcord/pull/1095 - >2.6.1
487480
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:nextcord.health_check",
488-
# https://github.com/bachya/pytile/pull/280 - >2023.08.0
481+
# https://github.com/bachya/pytile/pull/280 - >=2023.10.0
489482
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:pytile.tile",
490483
# https://github.com/rytilahti/python-miio/pull/1809 - >0.5.12
491484
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:miio.protocol",
@@ -494,30 +487,34 @@ filterwarnings = [
494487
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:onvif.client",
495488
# Fixed upstream in python-telegram-bot - >=20.0
496489
"ignore:python-telegram-bot is using upstream urllib3:UserWarning:telegram.utils.request",
497-
# https://github.com/ludeeus/pytraccar/pull/15 - >1.0.0
498-
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:pytraccar.client",
499490
# https://github.com/grahamwetzler/smart-meter-texas/pull/143 - >0.5.3
500491
"ignore:ssl.OP_NO_SSL\\*/ssl.OP_NO_TLS\\* options are deprecated:DeprecationWarning:smart_meter_texas",
501492
# https://github.com/Bluetooth-Devices/xiaomi-ble/pull/59 - >0.21.1
502493
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:xiaomi_ble.parser",
494+
# https://github.com/mvantellingen/python-zeep/pull/1364 - >4.2.1
495+
"ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning:zeep.utils",
503496

504497
# -- not helpful
505498
# pyatmo.__init__ imports deprecated moduls from itself - v7.5.0
506499
"ignore:The module pyatmo.* is deprecated:DeprecationWarning:pyatmo",
507500

508501
# -- other
509502
# Locale changes might take some time to resolve upstream
510-
"ignore:Use setlocale\\(\\), getencoding\\(\\) and getlocale\\(\\) instead:DeprecationWarning:homematicip.base.base_connection",
511-
"ignore:Use setlocale\\(\\), getencoding\\(\\) and getlocale\\(\\) instead:DeprecationWarning:micloud.micloud",
512-
# https://github.com/protocolbuffers/protobuf - v4.24.4
513-
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated and scheduled for removal:DeprecationWarning:google.protobuf.internal.well_known_types",
503+
"ignore:'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15:DeprecationWarning:micloud.micloud",
504+
# https://github.com/protocolbuffers/protobuf - v4.25.1
514505
"ignore:Type google._upb._message.(Message|Scalar)MapContainer uses PyType_Spec with a metaclass that has custom tp_new. .* Python 3.14:DeprecationWarning",
515506
# https://github.com/googleapis/google-auth-library-python/blob/v2.23.3/google/auth/_helpers.py#L95 - v2.23.3
516507
"ignore:datetime.*utcnow\\(\\) is deprecated:DeprecationWarning:google.auth._helpers",
517508
# https://github.com/googleapis/proto-plus-python/blob/v1.22.3/proto/datetime_helpers.py#L24 - v1.22.3
518509
"ignore:datetime.*utcfromtimestamp\\(\\) is deprecated:DeprecationWarning:proto.datetime_helpers",
519510
# https://github.com/MatsNl/pyatag/issues/11 - v0.3.7.1
520511
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:pyatag.gateway",
512+
# https://github.com/lidatong/dataclasses-json/issues/328
513+
# https://github.com/lidatong/dataclasses-json/pull/351
514+
"ignore:The 'default' argument to fields is deprecated. Use 'dump_default' instead:DeprecationWarning:dataclasses_json.mm",
515+
# Fixed for Python 3.12
516+
# https://github.com/lextudio/pysnmp/issues/10
517+
"ignore:The asyncore module is deprecated and will be removed in Python 3.12:DeprecationWarning:pysnmp.carrier.asyncore.base",
521518
# Wrong stacklevel
522519
# https://bugs.launchpad.net/beautifulsoup/+bug/2034451
523520
"ignore:It looks like you're parsing an XML document using an HTML parser:UserWarning:bs4.builder",

0 commit comments

Comments
 (0)