From ddb2c1d397a090d522738a658a44214088a5bbdf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 17:44:11 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- unsloth_cli/tests/test_studio_runtime_readiness.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/unsloth_cli/tests/test_studio_runtime_readiness.py b/unsloth_cli/tests/test_studio_runtime_readiness.py index e215a669f3..80b51a875e 100644 --- a/unsloth_cli/tests/test_studio_runtime_readiness.py +++ b/unsloth_cli/tests/test_studio_runtime_readiness.py @@ -232,9 +232,7 @@ def test_desktop_runtime_check_reports_a_rejected_setting_instead_of_exiting(mon assert "UNSLOTH_CPU_THREADS" in payload["error"] -def test_a_root_pin_is_checked_even_when_a_dependency_names_it_first( - monkeypatch, capsys, tmp_path -): +def test_a_root_pin_is_checked_even_when_a_dependency_names_it_first(monkeypatch, capsys, tmp_path): """datasets asks for huggingface-hub>=0.25,<2 and studio.txt pins ==0.36.2. Reached as a dependency first, the pin would never get to decide.""" studio = importlib.import_module("unsloth_cli.commands.studio") @@ -242,7 +240,8 @@ def test_a_root_pin_is_checked_even_when_a_dependency_names_it_first( requirements = backend / "requirements" requirements.mkdir(parents = True) (requirements / "studio.txt").write_text( - "datasets==4.3.0\nhuggingface-hub==0.36.2\n", encoding = "utf-8", + "datasets==4.3.0\nhuggingface-hub==0.36.2\n", + encoding = "utf-8", ) run_mod = SimpleNamespace(__file__ = str(backend / "run.py")) monkeypatch.setattr(studio, "_load_run_module", lambda: run_mod)