From 0f9883bb762d7d1504c93587d91fbe629948ff3e Mon Sep 17 00:00:00 2001 From: Mathieu Scheltienne Date: Mon, 22 Apr 2024 22:53:21 +0200 Subject: [PATCH] Fix codecov config (#172) * fix codecov config * suppress sphinx warning * ignore warning --- .codecov.yaml | 4 ++-- docs/source/conf.py | 3 +++ pycrostates/conftest.py | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.codecov.yaml b/.codecov.yaml index 408f379c..8b7d7dcd 100644 --- a/.codecov.yaml +++ b/.codecov.yaml @@ -14,7 +14,7 @@ coverage: target: 95% if_no_uploads: error if_not_found: success - if_ci_failed: failure + if_ci_failed: error project: default: false library: @@ -22,4 +22,4 @@ coverage: target: 90% if_no_uploads: error if_not_found: success - if_ci_failed: failure + if_ci_failed: error diff --git a/docs/source/conf.py b/docs/source/conf.py index 908702a1..71fe5dd8 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -75,6 +75,9 @@ # make `filter` a cross-reference to the Python function “filter”. default_role = "py:obj" +# list of warning types to suppress +suppress_warnings = ["config.cache"] + # -- options for HTML output ------------------------------------------------- html_theme = "pydata_sphinx_theme" html_theme_options = { diff --git a/pycrostates/conftest.py b/pycrostates/conftest.py index e3e7cdc8..dfab2716 100644 --- a/pycrostates/conftest.py +++ b/pycrostates/conftest.py @@ -23,6 +23,8 @@ def pytest_configure(config): # Joblib ignore:ast\.Num is deprecated.*:DeprecationWarning ignore:Attribute n is deprecated.*:DeprecationWarning + # MNE + ignore:Python 3.14 will, by default, filter extracted tar.*:DeprecationWarning """ for warning_line in warnings_lines.split("\n"): warning_line = warning_line.strip()