Fix Type Checker; Improve Protobuf Generation
This commit is contained in:
@@ -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
|
||||
+5
-2
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user