mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-01-16 11:27:47 -05:00
ci: pre-commit autoupdate [pre-commit.ci] (#1061)
* ci: pre-commit autoupdate [pre-commit.ci] updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.5.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.6...v0.5.7) * ci: auto fixes from pre-commit.ci For more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
501fe752f9
commit
3e5b91dd2a
@@ -8,7 +8,7 @@ default_language_version:
|
||||
python: python3.11 # NOTE: sync with .python-version-default
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: "v0.5.6"
|
||||
rev: "v0.5.7"
|
||||
hooks:
|
||||
- id: ruff
|
||||
alias: r
|
||||
|
||||
@@ -39,7 +39,7 @@ def _select_bento_name(models: list[BentoInfo], target: DeploymentTarget):
|
||||
model_infos = [(model.repo.name, model.name, can_run(model, target)) for model in models]
|
||||
model_name_groups = defaultdict(lambda: 0.0)
|
||||
for repo, name, score in model_infos:
|
||||
model_name_groups[(repo, name)] += score
|
||||
model_name_groups[repo, name] += score
|
||||
table_data = [(name, repo, CHECKED if score > 0 else '') for (repo, name), score in model_name_groups.items()]
|
||||
if not table_data:
|
||||
output('No model found', style='red')
|
||||
|
||||
Reference in New Issue
Block a user