Skip to content
Merged
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: 0 additions & 14 deletions skore-hub-project/src/skore_hub_project/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,18 @@
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",
]


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."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
4 changes: 2 additions & 2 deletions skore-hub-project/src/skore_hub_project/project/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions skore-hub-project/src/skore_hub_project/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion skore-hub-project/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading