install:
	pip install -e .[dev]
	pre-commit install

dev:
	pip install -e .[dev,docs,demos]
	npm -g install cloudron-surfer

test:
	pytest -s

update-pre:
	pre-commit autoupdate

git-rm-merged:
	git branch -D `git branch --merged | grep -v \* | xargs`

build:
	rm -rf dist
	pip install build
	python -m build

jupytext:
	jupytext docs/**/*.ipynb --to py

notebooks:
	jupytext docs/**/*.py --to ipynb

docs:
	jb build docs

.PHONY: drc doc docs
