diff --git a/justfile b/justfile index 8718b6b9..a2fe657a 100644 --- a/justfile +++ b/justfile @@ -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 \ No newline at end of file + 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 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index baea585c..bfd0708b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] \ No newline at end of file +extend-select = ["I", "N", "B", "A", "PIE", "SIM"]