Skip to content

Commit 1df72fa

Browse files
committed
build(pixi): add dev tasks
1 parent d173ffc commit 1df72fa

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎pixi.toml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ format-check = "ruff format --check ."
3333
lint = "ruff check ."
3434
lint-fix = "ruff check --fix ."
3535
typecheck = "pyright"
36+
install-hooks = "pre-commit install && ln -sf ../../scripts/git-pre-push .git/hooks/pre-push"
3637

3738
[feature.doc.dependencies]
3839
sphinx = ">=8.1.3"
3940
furo = ">=2024.8.6"
4041
myst-parser = ">=4.0.1"
4142
sphinx-copybutton = ">=0.5.2"
4243

44+
[feature.doc.tasks]
45+
docs = "sphinx-build -b html docs docs/_build/html"
46+
4347
[environments]
4448
default = ["app"]
4549
metagraph = ["mg"]
@@ -48,4 +52,4 @@ dev = ["app", "dev", "doc"]
4852
[tasks]
4953
metapang = "metapang"
5054
test = "pytest"
51-
docs = "sphinx-build -b html docs docs/_build/html"
55+
docker = 'docker build --build-arg GIT_COMMIT=$(git rev-parse --short HEAD) -f packaging/docker/Dockerfile -t ghcr.io/labgem/metapang:$(grep -m1 "^version = " pixi.toml | grep -oE "[0-9]+(\.[0-9]+)+") -t ghcr.io/labgem/metapang:latest .'

0 commit comments

Comments
 (0)