diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6d430284..7f7aacc4c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,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.12.12" + rev: "v0.14.0" hooks: - id: ruff alias: r @@ -19,7 +19,7 @@ repos: verbose: true types_or: [python, pyi, jupyter] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.17.1" + rev: "v1.18.2" hooks: - id: mypy args: [--strict, --ignore-missing-imports] diff --git a/src/openllm/common.py b/src/openllm/common.py index c3646ba69..00c7f1635 100644 --- a/src/openllm/common.py +++ b/src/openllm/common.py @@ -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 diff --git a/src/openllm/repo.py b/src/openllm/repo.py index 50db42681..ddad9089f 100644 --- a/src/openllm/repo.py +++ b/src/openllm/repo.py @@ -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