Skip to content

Commit 686fbcf

Browse files
committed
Adds Makefile targets and makes them PHONY
1 parent fcf1323 commit 686fbcf

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,81 @@
1+
.PHONY: install-uv
2+
install-uv:
3+
curl -LsSf https://astral.sh/uv/install.sh | sh
4+
5+
.PHONY: install-linter
6+
install-linter:
7+
curl -LsSf https://astral.sh/ruff/install.sh | sh
8+
9+
.PHONY: install-type-checker
10+
install-type-checker:
11+
uv add --dev ty
12+
13+
.PHONY: install-import-linter
14+
install-import-linter:
15+
uv add --dev import-linter
16+
17+
.PHONY: lint
118
lint:
219
ruff check
320

21+
.PHONY: lint-imports
422
lint-imports:
523
uv run lint-imports --verbose --config src/micromanager/.importlinter
624

25+
.PHONY: format
726
format:
827
ruff format ./
928

29+
.PHONY: type-check
1030
type-check:
1131
uv run ty check --exclude src/micromanager/tests/
1232

33+
.PHONY: test
1334
test:
1435
uv run python -m unittest discover -v src/micromanager/tests/unit
1536

37+
.PHONY: test-integration
1638
test-integration:
1739
uv run python -m unittest discover -v src/micromanager/tests/integration
1840

41+
.PHONY: install-local-package
1942
install-local-package:
2043
uv pip install -e .
2144

45+
.PHONY: build
2246
build:
2347
uv build
2448

49+
.PHONY: publish
2550
publish:
2651
uv publish
2752

53+
.PHONY: clean
2854
clean:
2955
rm -rf dist/
3056
rm -rf src/compose_micromanager.egg-info/
3157
rm -rf src/micromanager.egg-info
3258

59+
.PHONY: start
3360
start:
3461
uv run typer src/micromanager/main.py run start
3562

63+
.PHONY: stop
3664
stop:
3765
uv run typer src/micromanager/main.py run stop
3866

67+
.PHONY: status
3968
status:
4069
uv run typer src/micromanager/main.py run status
4170

71+
.PHONY: help
4272
help:
4373
uv run typer src/micromanager/main.py run --help
4474

75+
.PHONY: start-documentation-server
4576
start-documentation-server:
4677
uv run python -m mkdocs serve
4778

79+
.PHONY: deploy-documentation
4880
deploy-documentation:
4981
uv run python -m mkdocs gh-deploy --config-file mkdocs.yml

0 commit comments

Comments
 (0)