Add Protobuf Support

This commit is contained in:
Arbion Halili
2025-06-28 01:26:49 +01:00
parent 7f0f71b9eb
commit 61b8b1cb18
4 changed files with 123 additions and 80 deletions

View File

@@ -31,6 +31,8 @@ lint = { shell = "ruff check --fix master worker shared engines/*", help = "Run
test = { shell = "pytest master worker shared engines/*", help = "Run the tests" }
check = { shell = "basedpyright --project master worker shared engines/*", 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" }
###
# workspace configuration
@@ -83,6 +85,8 @@ include = ["master", "worker", "shared", "engines/*"]
pythonVersion = "3.13"
pythonPlatform = "Darwin"
exclude = ["shared/protobufs/**"]
###
# uv configuration
###
@@ -98,5 +102,8 @@ environments = [
# ruff configuration
###
[tool.ruff]
extend-exclude = ["shared/protobufs/**"]
[tool.ruff.lint]
extend-select = ["I", "N", "B", "A", "PIE", "SIM"]