From 5301c5daf0daf1d08cf38c0aa6cb639f1300bcbb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2026 13:52:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/install_python_stack.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/studio/install_python_stack.py b/studio/install_python_stack.py index a7188c5b07..8e85aa16dd 100644 --- a/studio/install_python_stack.py +++ b/studio/install_python_stack.py @@ -541,16 +541,21 @@ def install_python_stack() -> int: # immediately after the package name. import re as _re - _base_lines = (REQ_ROOT / "base.txt").read_text( - encoding = "utf-8" - ).splitlines(keepends = True) + _base_lines = ( + (REQ_ROOT / "base.txt") + .read_text(encoding = "utf-8") + .splitlines(keepends = True) + ) _base_filtered = [ ln for ln in _base_lines if not _re.match(r"^\s*unsloth\s*([<>=!~;\[#]|$)", ln.strip()) ] _base_tmp = tempfile.NamedTemporaryFile( - mode = "w", suffix = ".txt", delete = False, encoding = "utf-8", + mode = "w", + suffix = ".txt", + delete = False, + encoding = "utf-8", ) _base_tmp.writelines(_base_filtered) _base_tmp.close()