diff --git a/skore-hub-project/src/skore_hub_project/__init__.py b/skore-hub-project/src/skore_hub_project/__init__.py index c54509ef08..cec54c4f5b 100644 --- a/skore-hub-project/src/skore_hub_project/__init__.py +++ b/skore-hub-project/src/skore_hub_project/__init__.py @@ -6,14 +6,11 @@ from logging import basicConfig, getLogger from matplotlib import pyplot as plt -from rich.console import Console -from rich.theme import Theme __all__ = [ "Payload", "b64_str_to_bytes", "bytes_to_b64_str", - "console", "switch_plt_backend", ] @@ -21,17 +18,6 @@ basicConfig() logger = getLogger(__name__) -console = Console( - width=88, - theme=Theme( - { - "repr.str": "cyan", - "rule.line": "orange1", - "repr.url": "orange1", - } - ), -) - def b64_str_to_bytes(literal: str) -> bytes: """Decode the Base64 str object ``literal`` in a bytes.""" diff --git a/skore-hub-project/src/skore_hub_project/authentication/login.py b/skore-hub-project/src/skore_hub_project/authentication/login.py index a819f3bc57..787170b97c 100644 --- a/skore-hub-project/src/skore_hub_project/authentication/login.py +++ b/skore-hub-project/src/skore_hub_project/authentication/login.py @@ -6,8 +6,8 @@ from rich.align import Align from rich.live import Live from rich.panel import Panel +from skore import console -from skore_hub_project import console from skore_hub_project.authentication.apikey import APIKey from skore_hub_project.authentication.token import Token from skore_hub_project.authentication.uri import URI diff --git a/skore-hub-project/src/skore_hub_project/authentication/token.py b/skore-hub-project/src/skore_hub_project/authentication/token.py index 398ef67930..0e006ca817 100644 --- a/skore-hub-project/src/skore_hub_project/authentication/token.py +++ b/skore-hub-project/src/skore_hub_project/authentication/token.py @@ -12,8 +12,8 @@ from rich.align import Align from rich.live import Live from rich.panel import Panel +from skore import console -from skore_hub_project import console from skore_hub_project.authentication.uri import URI diff --git a/skore-hub-project/src/skore_hub_project/project/project.py b/skore-hub-project/src/skore_hub_project/project/project.py index 4df53aa3b2..430585d95a 100644 --- a/skore-hub-project/src/skore_hub_project/project/project.py +++ b/skore-hub-project/src/skore_hub_project/project/project.py @@ -17,9 +17,9 @@ from joblib import load as joblib_load from rich.progress import Progress, SpinnerColumn, TextColumn, TimeElapsedColumn from sklearn.utils.validation import _check_pos_label_consistency -from skore import THREADABLE +from skore import THREADABLE, console -from skore_hub_project import console, switch_plt_backend +from skore_hub_project import switch_plt_backend from skore_hub_project.client.client import Client, HUBClient from skore_hub_project.exception import ForbiddenException, NotFoundException from skore_hub_project.json import dumps diff --git a/skore-hub-project/src/skore_hub_project/report/report.py b/skore-hub-project/src/skore_hub_project/report/report.py index b75594224e..338cd4fdcd 100644 --- a/skore-hub-project/src/skore_hub_project/report/report.py +++ b/skore-hub-project/src/skore_hub_project/report/report.py @@ -10,9 +10,8 @@ from joblib import Parallel, delayed from pydantic import BaseModel, ConfigDict, Field, computed_field from rich.progress import BarColumn, Progress, TextColumn, TimeElapsedColumn -from skore import THREADABLE +from skore import THREADABLE, console -from skore_hub_project import console from skore_hub_project.artifact.media.media import Media from skore_hub_project.artifact.pickle import Pickle from skore_hub_project.metric.metric import Metric diff --git a/skore-hub-project/tests/conftest.py b/skore-hub-project/tests/conftest.py index f33232f64a..9f7e394dd1 100644 --- a/skore-hub-project/tests/conftest.py +++ b/skore-hub-project/tests/conftest.py @@ -332,7 +332,6 @@ def monkeypatch_rich(monkeypatch): monkeypatch.setattr("rich.console.Console", partial(Console, quiet=True)) monkeypatch.setattr("skore.console.quiet", True) - monkeypatch.setattr("skore_hub_project.console.quiet", True) @fixture