mirror of
https://github.com/bentoml/OpenLLM.git
synced 2025-12-23 23:57:46 -05:00
ci: auto fixes from pre-commit.ci
For more information, see https://pre-commit.ci
This commit is contained in:
@@ -11,7 +11,8 @@ import subprocess, sys, pathlib, json, jinja2
|
||||
if __name__ == '__main__':
|
||||
with (pathlib.Path('.').parent / 'README.md').open('w') as f:
|
||||
f.write(
|
||||
jinja2.Environment(loader=jinja2.FileSystemLoader('.'))
|
||||
jinja2
|
||||
.Environment(loader=jinja2.FileSystemLoader('.'))
|
||||
.get_template('README.md.tpl')
|
||||
.render(
|
||||
model_dict=json.loads(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio, asyncio.subprocess, functools, hashlib, io, json, os, pathlib, signal, subprocess, sys, sysconfig, typing, shlex
|
||||
import typer, typer.core, pydantic, questionary, pyaml, yaml
|
||||
import typer, pydantic, questionary, pyaml, yaml
|
||||
|
||||
from collections import UserDict
|
||||
from contextlib import asynccontextmanager, contextmanager
|
||||
|
||||
@@ -167,7 +167,6 @@ def _clone_repo(repo: RepoInfo) -> None:
|
||||
['git', 'clone', '--depth=1', '-b', repo.branch, repo.url, str(repo.path)], check=True
|
||||
)
|
||||
except (subprocess.CalledProcessError, FileNotFoundError):
|
||||
import dulwich
|
||||
import dulwich.porcelain
|
||||
|
||||
# Dulwich doesn't have easy output suppression, but we rarely get here
|
||||
|
||||
Reference in New Issue
Block a user