From 49c607acf75e92b28c14924cd3d6a7c6519773ee Mon Sep 17 00:00:00 2001 From: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:19:28 +0200 Subject: [PATCH] Re-enable raising error from huggingface-hub FutureWarning in CI (#7011) Re-enable raising error from huggingface-hub FutureWarning in tests --- pyproject.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 53328fa65cc..511a9e0d744 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,10 +18,9 @@ known-first-party = ["datasets"] [tool.pytest.ini_options] # Test fails if a FutureWarning is thrown by `huggingface_hub` -# Temporarily disabled because transformers 4.41.1 calls deprecated code from `huggingface_hub` that causes FutureWarning -# filterwarnings = [ -# "error::FutureWarning:huggingface_hub*", -# ] +filterwarnings = [ + "error::FutureWarning:huggingface_hub*", +] markers = [ "unit: unit test", "integration: integration test",