diff --git a/studio/backend/colab.py b/studio/backend/colab.py index a6fac0d413..deddf28087 100644 --- a/studio/backend/colab.py +++ b/studio/backend/colab.py @@ -66,8 +66,7 @@ def _pip_install_backend_deps() -> None: except ImportError: print("Upgrading huggingface-hub (is_offline_mode missing) ...") subprocess.check_call( - [sys.executable, "-m", "pip", "install", "-q", - "huggingface-hub>=1.0"], + [sys.executable, "-m", "pip", "install", "-q", "huggingface-hub>=1.0"], ) diff --git a/studio/install_python_stack.py b/studio/install_python_stack.py index 603ac162c9..2c64695241 100644 --- a/studio/install_python_stack.py +++ b/studio/install_python_stack.py @@ -376,11 +376,14 @@ def install_python_stack() -> int: # pip may not exist yet (uv-created venvs omit it). Try ensurepip # first, then upgrade. Only fall back to a direct upgrade when pip # is already present. - _has_pip = subprocess.run( - [sys.executable, "-m", "pip", "--version"], - stdout = subprocess.DEVNULL, - stderr = subprocess.DEVNULL, - ).returncode == 0 + _has_pip = ( + subprocess.run( + [sys.executable, "-m", "pip", "--version"], + stdout = subprocess.DEVNULL, + stderr = subprocess.DEVNULL, + ).returncode + == 0 + ) if not _has_pip: run(