.PHONY: install install-dev lint typecheck test test-cov clean build

install:
	pip install -e .

install-dev:
	pip install -e ".[all]"

lint:
	ruff check ros2_gpt tests

typecheck:
	mypy ros2_gpt --ignore-missing-imports

test:
	pytest -v

test-cov:
	pytest --cov=ros2_gpt --cov-report=term --cov-report=html

build:
	pip install build
	python -m build

clean:
	rm -rf dist/ build/ *.egg-info .pytest_cache __pycache__
	find . -name '*.pyc' -delete
	find . -name '__pycache__' -type d -exec rm -rf {} + 2>/dev/null || true

.PHONY: vscode-install vscode-compile
vscode-install:
	cd vscode-extension && npm install

vscode-compile:
	cd vscode-extension && npm run compile
