Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/tools/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,25 @@
import os
import shutil
import sys
import warnings

import matplotlib

from hidimstat import __version__


def _reset_warning_filters(_gallery_conf, _fname):
"""Suppress sklearn FutureWarnings before each gallery example.

TODO: remove when minimum sklearn is bumped to >= 1.7.
"""
warnings.filterwarnings("ignore", category=FutureWarning)


# Passing a function to reset the warning makes the config unpickable
suppress_warnings = ["config.cache"]


def linkcode_resolve(domain, info):
"""Determine the URL corresponding lines of code in the GitHub repository."""
if domain != "py":
Expand Down Expand Up @@ -190,6 +203,7 @@ def linkcode_resolve(domain, info):
"backreferences_dir": "./generated/gallery/backreference/",
"parallel": False,
"show_memory": True, # can't show memory if it's in parallel
"reset_modules": ("matplotlib", "seaborn", _reset_warning_filters),
"reference_url": {
# The module we locally document (so, hidimstat) uses None
"hidimstat": None,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies = [
"joblib >= 1.2.0, < 2",
"numpy >= 1.25, < 3",
"pandas >= 2.2, < 3",
"scikit-learn >= 1.5, < 1.9",
"scikit-learn >= 1.6, < 1.9",
"scipy >= 1.9.2, < 2",
"tqdm >= 4.1.0, < 5",
]
Expand Down
Loading