diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000000..b18ab0d386c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +repos: + - repo: local + hooks: + - id: uv-format + name: Format with uv format + entry: uv + args: [format] + language: system + types: [python] + pass_filenames: false + always_run: true + - id: uv-check + name: Lint with ruff + entry: uv + args: [run, ruff, check, --fix] + language: system + types: [python] + pass_filenames: false + always_run: true diff --git a/Makefile b/Makefile new file mode 100644 index 00000000000..4454f6eed62 --- /dev/null +++ b/Makefile @@ -0,0 +1,70 @@ +# OpenHands V1 Makefile +# Minimal Makefile for OpenHands V1 using uv + +# Colors for output +GREEN := \033[32m +YELLOW := \033[33m +RED := \033[31m +CYAN := \033[36m +RESET := \033[0m + +# Required uv version +REQUIRED_UV_VERSION := 0.8.13 + +.PHONY: build format lint clean help check-uv-version + +# Default target +.DEFAULT_GOAL := help + +# Check uv version +check-uv-version: + @echo "$(YELLOW)Checking uv version...$(RESET)" + @UV_VERSION=$$(uv --version | cut -d' ' -f2); \ + REQUIRED_VERSION=$(REQUIRED_UV_VERSION); \ + if [ "$$(printf '%s\n' "$$REQUIRED_VERSION" "$$UV_VERSION" | sort -V | head -n1)" != "$$REQUIRED_VERSION" ]; then \ + echo "$(RED)Error: uv version $$UV_VERSION is less than required $$REQUIRED_VERSION$(RESET)"; \ + echo "$(YELLOW)Please update uv with: uv self update$(RESET)"; \ + exit 1; \ + fi; \ + echo "$(GREEN)uv version $$UV_VERSION meets requirements$(RESET)" + +# Main build target - setup everything +build: check-uv-version + @echo "$(CYAN)Setting up OpenHands V1 development environment...$(RESET)" + @echo "$(YELLOW)Installing dependencies with uv sync --dev...$(RESET)" + @uv sync --dev + @echo "$(GREEN)Dependencies installed successfully.$(RESET)" + @echo "$(YELLOW)Setting up pre-commit hooks...$(RESET)" + @uv run pre-commit install + @echo "$(GREEN)Pre-commit hooks installed successfully.$(RESET)" + @echo "$(GREEN)Build complete! Development environment is ready.$(RESET)" + +# Format code using uv format +format: + @echo "$(YELLOW)Formatting code with uv format...$(RESET)" + @uv format + @echo "$(GREEN)Code formatted successfully.$(RESET)" + +# Lint code +lint: + @echo "$(YELLOW)Linting code with ruff...$(RESET)" + @uv run ruff check --fix + @echo "$(GREEN)Linting completed.$(RESET)" + +# Clean up cache files +clean: + @echo "$(YELLOW)Cleaning up cache files...$(RESET)" + @find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true + @find . -type f -name "*.pyc" -delete 2>/dev/null || true + @rm -rf .pytest_cache .ruff_cache .mypy_cache 2>/dev/null || true + @echo "$(GREEN)Cache files cleaned.$(RESET)" + +# Show help +help: + @echo "$(CYAN)OpenHands V1 Makefile$(RESET)" + @echo "Available targets:" + @echo " $(GREEN)build$(RESET) - Setup development environment (install deps + hooks)" + @echo " $(GREEN)format$(RESET) - Format code with uv format" + @echo " $(GREEN)lint$(RESET) - Lint code with ruff" + @echo " $(GREEN)clean$(RESET) - Clean up cache files" + @echo " $(GREEN)help$(RESET) - Show this help message" \ No newline at end of file diff --git a/openhands/runtime/schema.py b/openhands/runtime/schema.py new file mode 100644 index 00000000000..0e728fe9f6c --- /dev/null +++ b/openhands/runtime/schema.py @@ -0,0 +1,79 @@ +from typing import Any, TypeVar +from pydantic import BaseModel, Field, ConfigDict, create_model + +S = TypeVar("S", bound="Schema") + + +def py_type(spec: dict[str, Any]) -> Any: + """Map JSON schema types to Python types.""" + t = spec.get("type") + if t == "array": + items = spec.get("items", {}) + inner = py_type(items) if isinstance(items, dict) else Any + return list[inner] # type: ignore[index] + if t == "object": + return dict[str, Any] + _map = { + "string": str, + "integer": int, + "number": float, + "boolean": bool, + } + if t in _map: + return _map[t] + return Any + + +class Schema(BaseModel): + """Base schema for input action / output observation.""" + + model_config = ConfigDict(extra="forbid") + + @classmethod + def to_mcp_schema(cls) -> dict[str, Any]: + """Convert to JSON schema format compatible with MCP.""" + js = cls.model_json_schema() + req = [n for n, f in cls.model_fields.items() if f.is_required()] + return { + "type": "object", + "properties": js.get("properties", {}) or {}, + "required": req or [], + } + + @classmethod + def from_mcp_schema( + cls: type[S], model_name: str, schema: dict[str, Any] + ) -> type["S"]: + """Create a Schema subclass from an MCP/JSON Schema object.""" + assert isinstance(schema, dict), "Schema must be a dict" + assert schema.get("type") == "object", "Only object schemas are supported" + + props: dict[str, Any] = schema.get("properties", {}) or {} + required = set(schema.get("required", []) or []) + + fields: dict[str, tuple] = {} + for fname, spec in props.items(): + tp = py_type(spec if isinstance(spec, dict) else {}) + default = ... if fname in required else None + desc: str | None = ( + spec.get("description") if isinstance(spec, dict) else None + ) + fields[fname] = ( + tp, + Field(default=default, description=desc) + if desc + else Field(default=default), + ) + return create_model(model_name, __base__=cls, **fields) # type: ignore[return-value] + + +class ActionBase(Schema): + """Base schema for input action.""" + + pass + + +class ObservationBase(Schema): + """Base schema for output observation.""" + + model_config = ConfigDict(extra="allow") diff --git a/openhands/runtime/tool.py b/openhands/runtime/tool.py new file mode 100644 index 00000000000..3c230b53a65 --- /dev/null +++ b/openhands/runtime/tool.py @@ -0,0 +1,120 @@ +from typing import Any, Callable +from pydantic import BaseModel +from .schema import ActionBase, ObservationBase, Schema + + +class ToolAnnotations(BaseModel): + title: str | None = None + readOnlyHint: bool | None = None + destructiveHint: bool | None = None + idempotentHint: bool | None = None + openWorldHint: bool | None = None + + +class Tool: + """Tool that wraps an executor function with input/output validation and schema. + + - Normalize input/output schemas (class or dict) into both model+schema. + - Validate inputs before execute. + - Coerce outputs only if an output model is defined; else return vanilla JSON. + - Export MCP tool description. + """ + + def __init__( + self, + *, + name: str, + input_schema: type[ActionBase] | dict[str, Any], + output_schema: type[ObservationBase] | dict[str, Any] | None = None, + description: str | None = None, + annotations: ToolAnnotations | None = None, + _meta: dict[str, Any] | None = None, + execute_fn: Callable[[ActionBase], ObservationBase] | None = None, + ): + self.name = name + self.description = description + self.annotations = annotations + self._meta = _meta + self._set_input_schema(input_schema) + self._set_output_schema(output_schema) + + self.execute_fn = execute_fn + + def _set_input_schema( + self, input_schema: dict[str, Any] | type[ActionBase] + ) -> None: + # ---- INPUT: class or dict -> model + schema + self.action_type: type[ActionBase] + self.input_schema: dict[str, Any] + if isinstance(input_schema, type) and issubclass(input_schema, Schema): + self.action_type = input_schema + self.input_schema = input_schema.to_mcp_schema() + elif isinstance(input_schema, dict): + self.input_schema = input_schema + self.action_type = ActionBase.from_mcp_schema( + f"{self.name}Action", input_schema + ) + else: + raise TypeError( + "input_schema must be ActionBase subclass or dict JSON schema" + ) + + def _set_output_schema( + self, output_schema: dict[str, Any] | type[ObservationBase] | None + ) -> None: + # ---- OUTPUT: optional class or dict -> model + schema + self.observation_type: type[ObservationBase] | None + self.output_schema: dict[str, Any] | None + if output_schema is None: + self.observation_type = None + self.output_schema = None + elif isinstance(output_schema, type) and issubclass(output_schema, Schema): + self.observation_type = output_schema + self.output_schema = output_schema.to_mcp_schema() + elif isinstance(output_schema, dict): + self.output_schema = output_schema + self.observation_type = ObservationBase.from_mcp_schema( + f"{self.name}Observation", output_schema + ) + else: + raise TypeError( + "output_schema must be ObservationBase subclass, dict, or None" + ) + + def call(self, action: ActionBase) -> ObservationBase: + if self.execute_fn is None: + raise NotImplementedError(f"Tool '{self.name}' has no executor") + + # Execute + result = self.execute_fn(action) + + # Coerce output only if we declared a model; else wrap in base ObservationBase + if self.observation_type: + if isinstance(result, self.observation_type): + return result + return self.observation_type.model_validate(result) + else: + # When no output schema is defined, wrap the result in ObservationBase + if isinstance(result, ObservationBase): + return result + elif isinstance(result, BaseModel): + return ObservationBase.model_validate(result.model_dump()) + elif isinstance(result, dict): + return ObservationBase.model_validate(result) + raise TypeError( + "Output must be dict or BaseModel when no output schema is defined" + ) + + def to_mcp_tool(self) -> dict[str, Any]: + out = { + "name": self.name, + "description": self.description, + "inputSchema": self.input_schema, + } + if self.annotations: + out["annotations"] = self.annotations + if self._meta is not None: + out["_meta"] = self._meta + if self.output_schema: + out["outputSchema"] = self.output_schema + return out diff --git a/pyproject.toml b/pyproject.toml index e27f0135485..c6eaecd2582 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,3 +9,9 @@ dependencies = [ "litellm>=1.75.9", "pydantic>=2.11.7", ] + +[dependency-groups] +dev = [ + "pre-commit>=4.3.0", + "ruff>=0.12.10", +] diff --git a/uv.lock b/uv.lock index 51e34dab24c..3b821b18c6c 100644 --- a/uv.lock +++ b/uv.lock @@ -160,6 +160,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/7c/fc/6a8cb64e5f0324877d503c854da15d76c1e50eb722e320b15345c4d0c6de/cffi-1.17.1-cp313-cp313-win_amd64.whl", hash = "sha256:f6a16c31041f09ead72d69f583767292f750d24913dadacf5756b966aacb3f1a", size = 182009 }, ] +[[package]] +name = "cfgv" +version = "3.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/11/74/539e56497d9bd1d484fd863dd69cbbfa653cd2aa27abfe35653494d85e94/cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560", size = 7114 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c5/55/51844dd50c4fc7a33b653bfaba4c2456f06955289ca770a5dbd5fd267374/cfgv-3.4.0-py2.py3-none-any.whl", hash = "sha256:b7265b1f29fd3316bfcd2b330d63d024f2bfd8bcb8b0272f8e19a504856c48f9", size = 7249 }, +] + [[package]] name = "charset-normalizer" version = "3.4.3" @@ -273,6 +282,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/df/e5/a7b6db64f08cfe065e531ec6b508fa7dac704fab70d05adb5bc0c2c1d1b6/cyclopts-3.22.5-py3-none-any.whl", hash = "sha256:92efb4a094d9812718d7efe0bffa319a19cb661f230dbf24406c18cd8809fb82", size = 84994 }, ] +[[package]] +name = "distlib" +version = "0.4.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/96/8e/709914eb2b5749865801041647dc7f4e6d00b549cfe88b65ca192995f07c/distlib-0.4.0.tar.gz", hash = "sha256:feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d", size = 614605 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/33/6b/e0547afaf41bf2c42e52430072fa5658766e3d65bd4b03a563d1b6336f57/distlib-0.4.0-py2.py3-none-any.whl", hash = "sha256:9659f7d87e46584a30b5780e43ac7a2143098441670ff0a49d5f9034c54a6c16", size = 469047 }, +] + [[package]] name = "distro" version = "1.9.0" @@ -514,6 +532,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/39/7b/bb06b061991107cd8783f300adff3e7b7f284e330fd82f507f2a1417b11d/huggingface_hub-0.34.4-py3-none-any.whl", hash = "sha256:9b365d781739c93ff90c359844221beef048403f1bc1f1c123c191257c3c890a", size = 561452 }, ] +[[package]] +name = "identify" +version = "2.6.13" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/82/ca/ffbabe3635bb839aa36b3a893c91a9b0d368cb4d8073e03a12896970af82/identify-2.6.13.tar.gz", hash = "sha256:da8d6c828e773620e13bfa86ea601c5a5310ba4bcd65edf378198b56a1f9fb32", size = 99243 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/ce/461b60a3ee109518c055953729bf9ed089a04db895d47e95444071dcdef2/identify-2.6.13-py2.py3-none-any.whl", hash = "sha256:60381139b3ae39447482ecc406944190f690d4a2997f2584062089848361b33b", size = 99153 }, +] + [[package]] name = "idna" version = "3.10" @@ -854,6 +881,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/fd/69/b547032297c7e63ba2af494edba695d781af8a0c6e89e4d06cf848b21d80/multidict-6.6.4-py3-none-any.whl", hash = "sha256:27d8f8e125c07cb954e54d75d04905a9bba8a439c1d84aca94949d4d03d8601c", size = 12313 }, ] +[[package]] +name = "nodeenv" +version = "1.9.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/43/16/fc88b08840de0e0a72a2f9d8c6bae36be573e475a6326ae854bcc549fc45/nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f", size = 47437 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9", size = 22314 }, +] + [[package]] name = "openai" version = "1.101.0" @@ -944,6 +980,12 @@ dependencies = [ { name = "pydantic" }, ] +[package.dev-dependencies] +dev = [ + { name = "pre-commit" }, + { name = "ruff" }, +] + [package.metadata] requires-dist = [ { name = "fastmcp", specifier = ">=2.11.3" }, @@ -951,6 +993,12 @@ requires-dist = [ { name = "pydantic", specifier = ">=2.11.7" }, ] +[package.metadata.requires-dev] +dev = [ + { name = "pre-commit", specifier = ">=4.3.0" }, + { name = "ruff", specifier = ">=0.12.10" }, +] + [[package]] name = "packaging" version = "25.0" @@ -978,6 +1026,31 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/7d/eb/b6260b31b1a96386c0a880edebe26f89669098acea8e0318bff6adb378fd/pathable-0.4.4-py3-none-any.whl", hash = "sha256:5ae9e94793b6ef5a4cbe0a7ce9dbbefc1eec38df253763fd0aeeacf2762dbbc2", size = 9592 }, ] +[[package]] +name = "platformdirs" +version = "4.3.8" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fe/8b/3c73abc9c759ecd3f1f7ceff6685840859e8070c4d947c93fae71f6a0bf2/platformdirs-4.3.8.tar.gz", hash = "sha256:3d512d96e16bcb959a814c9f348431070822a6496326a4be0911c40b5a74c2bc", size = 21362 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fe/39/979e8e21520d4e47a0bbe349e2713c0aac6f3d853d0e5b34d76206c439aa/platformdirs-4.3.8-py3-none-any.whl", hash = "sha256:ff7059bb7eb1179e2685604f4aaf157cfd9535242bd23742eadc3c13542139b4", size = 18567 }, +] + +[[package]] +name = "pre-commit" +version = "4.3.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cfgv" }, + { name = "identify" }, + { name = "nodeenv" }, + { name = "pyyaml" }, + { name = "virtualenv" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ff/29/7cf5bbc236333876e4b41f56e06857a87937ce4bf91e117a6991a2dbb02a/pre_commit-4.3.0.tar.gz", hash = "sha256:499fe450cc9d42e9d58e606262795ecb64dd05438943c62b66f6a8673da30b16", size = 193792 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5b/a5/987a405322d78a73b66e39e4a90e4ef156fd7141bf71df987e50717c321b/pre_commit-4.3.0-py2.py3-none-any.whl", hash = "sha256:2b0747ad7e6e967169136edffee14c16e148a778a54e4f967921aa1ebf2308d8", size = 220965 }, +] + [[package]] name = "propcache" version = "0.3.2" @@ -1393,6 +1466,32 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/e2/3f/d6c216ed5199c9ef79e2a33955601f454ed1e7420a93b89670133bca5ace/rpds_py-0.27.0-cp314-cp314t-win_amd64.whl", hash = "sha256:8a1dca5507fa1337f75dcd5070218b20bc68cf8844271c923c1b79dfcbc20391", size = 230993 }, ] +[[package]] +name = "ruff" +version = "0.12.10" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/3b/eb/8c073deb376e46ae767f4961390d17545e8535921d2f65101720ed8bd434/ruff-0.12.10.tar.gz", hash = "sha256:189ab65149d11ea69a2d775343adf5f49bb2426fc4780f65ee33b423ad2e47f9", size = 5310076 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/24/e7/560d049d15585d6c201f9eeacd2fd130def3741323e5ccf123786e0e3c95/ruff-0.12.10-py3-none-linux_armv6l.whl", hash = "sha256:8b593cb0fb55cc8692dac7b06deb29afda78c721c7ccfed22db941201b7b8f7b", size = 11935161 }, + { url = "https://files.pythonhosted.org/packages/d1/b0/ad2464922a1113c365d12b8f80ed70fcfb39764288ac77c995156080488d/ruff-0.12.10-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:ebb7333a45d56efc7c110a46a69a1b32365d5c5161e7244aaf3aa20ce62399c1", size = 12660884 }, + { url = "https://files.pythonhosted.org/packages/d7/f1/97f509b4108d7bae16c48389f54f005b62ce86712120fd8b2d8e88a7cb49/ruff-0.12.10-py3-none-macosx_11_0_arm64.whl", hash = "sha256:d59e58586829f8e4a9920788f6efba97a13d1fa320b047814e8afede381c6839", size = 11872754 }, + { url = "https://files.pythonhosted.org/packages/12/ad/44f606d243f744a75adc432275217296095101f83f966842063d78eee2d3/ruff-0.12.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:822d9677b560f1fdeab69b89d1f444bf5459da4aa04e06e766cf0121771ab844", size = 12092276 }, + { url = "https://files.pythonhosted.org/packages/06/1f/ed6c265e199568010197909b25c896d66e4ef2c5e1c3808caf461f6f3579/ruff-0.12.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:37b4a64f4062a50c75019c61c7017ff598cb444984b638511f48539d3a1c98db", size = 11734700 }, + { url = "https://files.pythonhosted.org/packages/63/c5/b21cde720f54a1d1db71538c0bc9b73dee4b563a7dd7d2e404914904d7f5/ruff-0.12.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2c6f4064c69d2542029b2a61d39920c85240c39837599d7f2e32e80d36401d6e", size = 13468783 }, + { url = "https://files.pythonhosted.org/packages/02/9e/39369e6ac7f2a1848f22fb0b00b690492f20811a1ac5c1fd1d2798329263/ruff-0.12.10-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:059e863ea3a9ade41407ad71c1de2badfbe01539117f38f763ba42a1206f7559", size = 14436642 }, + { url = "https://files.pythonhosted.org/packages/e3/03/5da8cad4b0d5242a936eb203b58318016db44f5c5d351b07e3f5e211bb89/ruff-0.12.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1bef6161e297c68908b7218fa6e0e93e99a286e5ed9653d4be71e687dff101cf", size = 13859107 }, + { url = "https://files.pythonhosted.org/packages/19/19/dd7273b69bf7f93a070c9cec9494a94048325ad18fdcf50114f07e6bf417/ruff-0.12.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4f1345fbf8fb0531cd722285b5f15af49b2932742fc96b633e883da8d841896b", size = 12886521 }, + { url = "https://files.pythonhosted.org/packages/c0/1d/b4207ec35e7babaee62c462769e77457e26eb853fbdc877af29417033333/ruff-0.12.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f68433c4fbc63efbfa3ba5db31727db229fa4e61000f452c540474b03de52a9", size = 13097528 }, + { url = "https://files.pythonhosted.org/packages/ff/00/58f7b873b21114456e880b75176af3490d7a2836033779ca42f50de3b47a/ruff-0.12.10-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:141ce3d88803c625257b8a6debf4a0473eb6eed9643a6189b68838b43e78165a", size = 13080443 }, + { url = "https://files.pythonhosted.org/packages/12/8c/9e6660007fb10189ccb78a02b41691288038e51e4788bf49b0a60f740604/ruff-0.12.10-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:f3fc21178cd44c98142ae7590f42ddcb587b8e09a3b849cbc84edb62ee95de60", size = 11896759 }, + { url = "https://files.pythonhosted.org/packages/67/4c/6d092bb99ea9ea6ebda817a0e7ad886f42a58b4501a7e27cd97371d0ba54/ruff-0.12.10-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:7d1a4e0bdfafcd2e3e235ecf50bf0176f74dd37902f241588ae1f6c827a36c56", size = 11701463 }, + { url = "https://files.pythonhosted.org/packages/59/80/d982c55e91df981f3ab62559371380616c57ffd0172d96850280c2b04fa8/ruff-0.12.10-py3-none-musllinux_1_2_i686.whl", hash = "sha256:e67d96827854f50b9e3e8327b031647e7bcc090dbe7bb11101a81a3a2cbf1cc9", size = 12691603 }, + { url = "https://files.pythonhosted.org/packages/ad/37/63a9c788bbe0b0850611669ec6b8589838faf2f4f959647f2d3e320383ae/ruff-0.12.10-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:ae479e1a18b439c59138f066ae79cc0f3ee250712a873d00dbafadaad9481e5b", size = 13164356 }, + { url = "https://files.pythonhosted.org/packages/47/d4/1aaa7fb201a74181989970ebccd12f88c0fc074777027e2a21de5a90657e/ruff-0.12.10-py3-none-win32.whl", hash = "sha256:9de785e95dc2f09846c5e6e1d3a3d32ecd0b283a979898ad427a9be7be22b266", size = 11896089 }, + { url = "https://files.pythonhosted.org/packages/ad/14/2ad38fd4037daab9e023456a4a40ed0154e9971f8d6aed41bdea390aabd9/ruff-0.12.10-py3-none-win_amd64.whl", hash = "sha256:7837eca8787f076f67aba2ca559cefd9c5cbc3a9852fd66186f4201b87c1563e", size = 13004616 }, + { url = "https://files.pythonhosted.org/packages/24/3c/21cf283d67af33a8e6ed242396863af195a8a6134ec581524fd22b9811b6/ruff-0.12.10-py3-none-win_arm64.whl", hash = "sha256:cc138cc06ed9d4bfa9d667a65af7172b47840e1a98b02ce7011c391e54635ffc", size = 12074225 }, +] + [[package]] name = "six" version = "1.17.0" @@ -1540,6 +1639,20 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/d2/e2/dc81b1bd1dcfe91735810265e9d26bc8ec5da45b4c0f6237e286819194c3/uvicorn-0.35.0-py3-none-any.whl", hash = "sha256:197535216b25ff9b785e29a0b79199f55222193d47f820816e7da751e9bc8d4a", size = 66406 }, ] +[[package]] +name = "virtualenv" +version = "20.34.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "distlib" }, + { name = "filelock" }, + { name = "platformdirs" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/1c/14/37fcdba2808a6c615681cd216fecae00413c9dab44fb2e57805ecf3eaee3/virtualenv-20.34.0.tar.gz", hash = "sha256:44815b2c9dee7ed86e387b842a84f20b93f7f417f95886ca1996a72a4138eb1a", size = 6003808 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/76/06/04c8e804f813cf972e3262f3f8584c232de64f0cde9f703b46cf53a45090/virtualenv-20.34.0-py3-none-any.whl", hash = "sha256:341f5afa7eee943e4984a9207c025feedd768baff6753cd660c857ceb3e36026", size = 5983279 }, +] + [[package]] name = "werkzeug" version = "3.1.1"