diff --git a/src/cobalt/cli/main.py b/src/cobalt/cli/main.py index 422b4e5..339f869 100644 --- a/src/cobalt/cli/main.py +++ b/src/cobalt/cli/main.py @@ -6,6 +6,7 @@ import glob import importlib.util import sys +import warnings import webbrowser from pathlib import Path from typing import Optional @@ -51,6 +52,12 @@ def run( console.print(f"[bold]Found {len(experiment_files)} experiment file(s)[/bold]") + # Suppress noisy ResourceWarnings (unclosed sockets/transports) from user + # code and third-party libraries — these clutter CI output without being + # actionable by the experiment author. + warnings.filterwarnings("ignore", category=ResourceWarning) + warnings.filterwarnings("ignore", category=RuntimeWarning) + all_reports = [] for exp_file in experiment_files: