From 30c5edb0a7c01de13587f6a0cc05fb82e59729c9 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Mon, 20 May 2024 07:06:22 -1000 Subject: [PATCH] Enable FutureWarnings and DeprecationWarnings as errors in cugraph (#4415) Supersedes https://github.com/rapidsai/cugraph/pull/4271 There are some tests and internal usages of APIs that emit these warnings still. I don't know the best way to handle these warnings, but this PR ensures that _new_ `FutureWarning`s and `DeprecationWarning`s will raise an error in the CI Authors: - Matthew Roeschke (https://github.com/mroeschke) Approvers: - Rick Ratzel (https://github.com/rlratzel) URL: https://github.com/rapidsai/cugraph/pull/4415 --- python/cugraph/pytest.ini | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/python/cugraph/pytest.ini b/python/cugraph/pytest.ini index ebbd6a7eaad..675a6cf8fde 100644 --- a/python/cugraph/pytest.ini +++ b/python/cugraph/pytest.ini @@ -59,5 +59,14 @@ python_functions = filterwarnings = error:::cudf + error::FutureWarning + error::DeprecationWarning + # TODO + ignore:Multi is deprecated and the removal of multi edges will no longer be supported:FutureWarning + ignore:The legacy column names:FutureWarning + ignore:The include_hop_column flag is deprecated and will be removed:FutureWarning + ignore:Calling uniform_neighbor_sample with the:FutureWarning + ignore:The with_edge_properties flag is deprecated and will be removed:FutureWarning + ignore:This function is deprecated. Batched support for multiple vertices:DeprecationWarning # Called via dask. Not obviously addressable in cugraph. - ignore:The behavior of array concatenation with empty entries is deprecated:FutureWarning:cudf + ignore:The behavior of array concatenation with empty entries is deprecated:FutureWarning