[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-06-27 08:47:19 +00:00
commit f1525695e5

View file

@ -32,7 +32,7 @@ def _rewrite_python_dash_m(lines):
out = []
for line in lines:
body = line.rstrip("\n")
tail = line[len(body):] # preserve the trailing newline(s), if any
tail = line[len(body) :] # preserve the trailing newline(s), if any
m = _PY_M_PIP.match(body)
if m:
out.append(m.group(1) + "!" + m.group(2) + m.group(3) + tail)
@ -55,6 +55,7 @@ def register_ipython():
def _magic(line):
# /opt/unsloth-nb/bin is first on PATH, so `pip`/`uv` here is the shim.
return ip.system(tool + " " + line)
return _magic
# Override the built-in %pip / %uv so they route through the shim too.