[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
2c316862f8
commit
f1525695e5
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue