mjlab/Makefile
Upstream Snapshot 32a241c28f
Some checks failed
nightly / Test against latest dependencies (py3.10) (push) Has been cancelled
nightly / Test against latest dependencies (py3.13) (push) Has been cancelled
tests / tests (3.13, locked) (push) Has been cancelled
tests / tests (3.13, unlocked) (push) Has been cancelled
tests / pyright (3.10) (push) Has been cancelled
tests / lint-format (push) Has been cancelled
tests / tests (3.10, locked) (push) Has been cancelled
tests / tests (3.11, locked) (push) Has been cancelled
tests / tests (3.12, locked) (push) Has been cancelled
tests / pyright (3.11) (push) Has been cancelled
tests / pyright (3.12) (push) Has been cancelled
tests / pyright (3.13) (push) Has been cancelled
tests / ty-check (3.10) (push) Has been cancelled
tests / ty-check (3.11) (push) Has been cancelled
tests / ty-check (3.12) (push) Has been cancelled
tests / ty-check (3.13) (push) Has been cancelled
tests / stubs (push) Has been cancelled
tests / smoke-test (push) Has been cancelled
Docker / check_paths (push) Has been cancelled
docs / build (push) Has been cancelled
Docker / build (push) Has been cancelled
Import upstream snapshot c19f713c415a699a79d71cd96aa13c3104a05047
Upstream: https://github.com/michaelgillett/mjlab
Upstream-Commit: c19f713c415a699a79d71cd96aa13c3104a05047
Upstream-Branch: main
2026-08-28 15:42:17 +08:00

75 lines
1.3 KiB
Makefile

.PHONY: sync
sync:
uv sync --all-packages --extra cu128 --group dev
.PHONY: sync-cpu
sync-cpu:
uv sync --all-packages --extra cpu --group dev
.PHONY: format
format:
uv run ruff format
uv run ruff check --fix
.PHONY: type
type:
uv run ty check
uv run pyright
.PHONY: stubs
stubs:
bash typings/generate_mujoco_stubs.sh
.PHONY: check
check: format type
.PHONY: test
test:
uv run pytest
.PHONY: test-fast
test-fast:
uv run pytest -m "not slow"
.PHONY: test-cpu
test-cpu:
FORCE_CPU=1 uv run pytest
.PHONY: test-cpu-fast
test-cpu-fast:
FORCE_CPU=1 uv run pytest -m "not slow"
.PHONY: test-all
test-all: check test
.PHONY: build
build:
uv build
uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
@echo "Build and import test successful"
.PHONY: docs
docs:
uv run --group docs sphinx-build -j auto docs docs/_build
.PHONY: docs-multiversion
docs-multiversion:
uv run --group docs sphinx-multiversion docs docs/_build
.PHONY: docs-watch
docs-watch:
uv run --group docs sphinx-autobuild -j auto docs docs/_build
.PHONY: publish-test
publish-test: build
uv publish --publish-url https://test.pypi.org/legacy/
.PHONY: publish
publish: build
uv publish
.PHONY: docker-build
docker-build:
docker build -t mjlab:latest .