[object Object]

← back to Exo

Fix Type Checker; Improve Protobuf Generation

f7f779da19c8a1c90a9b8ada6e0b4b0fb2600f23 · 2025-06-28 12:28:26 +0100 · Arbion Halili

Files touched

Diff

commit f7f779da19c8a1c90a9b8ada6e0b4b0fb2600f23
Author: Arbion Halili <99731180+ToxicPine@users.noreply.github.com>
Date:   Sat Jun 28 12:28:26 2025 +0100

    Fix Type Checker; Improve Protobuf Generation
---
 justfile       | 2 +-
 pyproject.toml | 7 +++++--
 uv.lock        | 6 +++---
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/justfile b/justfile
index d6deb6f8..8718b6b9 100644
--- a/justfile
+++ b/justfile
@@ -1,3 +1,3 @@
 regenerate-protobufs:
-    protoc --proto_path=shared/protobufs/schemas --python_out=shared/protobufs/types shared/protobufs/schemas/*.proto
+    protoc --proto_path=shared/protobufs/schemas --python_out=shared/protobufs/types --pyi_out=shared/protobufs/types shared/protobufs/schemas/*.proto
     uv run ruff format ./shared/protobufs/types
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index b5e485c8..baea585c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -29,7 +29,7 @@ darwin = [
 fmt = { shell = "ruff format master worker shared engines/*", help = "Format the code" }
 lint = { shell = "ruff check --fix master worker shared engines/*", help = "Run the linter" }
 test = { shell = "pytest master worker shared engines/*", help = "Run the tests" }
-check = { shell = "basedpyright --project master worker shared engines/*", help = "Run type checker" }
+check = { shell = "basedpyright --project pyproject.toml", help = "Run type checker" }
 sync = { shell = "uv sync --all-packages", help = "Sync the dependencies" }
 protobufs = { shell = "just regenerate-protobufs", help = "Regenerate the protobufs" }
 build = { shell = "just regenerate-protobufs && uv build --all-packages", help = "Build the project" }
@@ -85,7 +85,10 @@ include = ["master", "worker", "shared", "engines/*"]
 pythonVersion  = "3.13"
 pythonPlatform = "Darwin"
 
-exclude = ["shared/protobufs/**"]
+stubPath = "shared/protobufs/types"
+ignore   = [
+    "shared/protobufs/types/**/*",
+]
 
 ###
 # uv configuration
diff --git a/uv.lock b/uv.lock
index 5f8ae494..dca182fb 100644
--- a/uv.lock
+++ b/uv.lock
@@ -64,7 +64,7 @@ dev = [
 
 [package.metadata]
 requires-dist = [
-    { name = "exo-master", virtual = "master" },
+    { name = "exo-master", editable = "master" },
     { name = "exo-worker", virtual = "worker" },
     { name = "mlx", marker = "extra == 'darwin'" },
 ]
@@ -81,12 +81,12 @@ dev = [
 [[package]]
 name = "exo-engine-mlx"
 version = "0.1.0"
-source = { virtual = "engines/mlx" }
+source = { editable = "engines/mlx" }
 
 [[package]]
 name = "exo-master"
 version = "0.1.0"
-source = { virtual = "master" }
+source = { editable = "master" }
 
 [[package]]
 name = "exo-shared"

← 38bc8ea7 Keep Protobuf Directories  ·  back to Exo  ·  Overhaul CI Design e4c4b3e9 →