diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 998736ec..d299df60 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ default_install_hook_types: repos: - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.8.22 + rev: 0.9.16 hooks: - id: uv-sync # - id: uv-export # outputs requirement.txt @@ -26,7 +26,7 @@ repos: # Ruff, for lightning-fast linting and formatting, installed with uv. - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.13.2 + rev: v0.14.8 hooks: # Run the linter. - id: ruff-check @@ -36,13 +36,13 @@ repos: # Pyright for static type checking, installed with uv. - repo: https://github.com/RobertCraigie/pyright-python - rev: v1.1.405 + rev: v1.1.407 hooks: - id: pyright # Enforce Conventional Commit messages. - repo: https://github.com/compilerla/conventional-pre-commit - rev: v4.2.0 + rev: v4.3.0 hooks: - id: conventional-pre-commit stages: [commit-msg] @@ -52,7 +52,7 @@ repos: # Commitizen-tools - repo: https://github.com/commitizen-tools/commitizen - rev: v4.9.1 # Replace with latest tag + rev: v4.10.0 # Replace with latest tag hooks: - id: commitizen - id: commitizen-branch diff --git a/src/sandbox/virtualmachine.py b/src/sandbox/virtualmachine.py index 8a501822..4852d8d8 100644 --- a/src/sandbox/virtualmachine.py +++ b/src/sandbox/virtualmachine.py @@ -4,13 +4,13 @@ import time from typing import Optional, Union, cast -from smolagents import AgentLogger, LogLevel - -import docker from docker.client import DockerClient from docker.errors import ImageNotFound, NotFound from docker.models.containers import Container from docker.types import Mount +from smolagents import AgentLogger, LogLevel + +import docker from .configs import SandboxVMConfig, VMConfig from .errors import VMCreationError