Remove PoeThePoet

This commit is contained in:
Arbion Halili
2025-06-28 14:33:01 +01:00
parent 587a52a944
commit 74adbc4280
2 changed files with 23 additions and 13 deletions

View File

@@ -1,3 +1,24 @@
regenerate-protobufs:
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
uv run ruff format ./shared/protobufs/types
fmt:
uv run ruff format master worker shared engines/*
lint:
uv run ruff check --fix master worker shared engines/*
test:
uv run pytest master worker shared engines/*
check:
uv run basedpyright --project pyproject.toml
sync:
uv sync --all-packages
protobufs:
just regenerate-protobufs
build: regenerate-protobufs
uv build --all-packages

View File

@@ -13,7 +13,6 @@ dependencies = [
[dependency-groups]
dev = [
"basedpyright>=1.29.4",
"poethepoet>=0.35.0",
"pytest>=8.4.0",
"ruff>=0.11.13",
]
@@ -24,16 +23,6 @@ darwin = [
"mlx",
]
# task runner configuration
[tool.poe.tasks]
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 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" }
###
# workspace configuration
###
@@ -109,4 +98,4 @@ environments = [
extend-exclude = ["shared/protobufs/**"]
[tool.ruff.lint]
extend-select = ["I", "N", "B", "A", "PIE", "SIM"]
extend-select = ["I", "N", "B", "A", "PIE", "SIM"]