Skip to content

Commit 37cfd27

Browse files
committed
Merge pull request #116 from amito/feature/makefile-minor-fixes
Minor additions to Makefile
2 parents acbee53 + ae110bb commit 37cfd27

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,14 +538,19 @@ test-integration: setup-ollama ## Run integration tests (requires Ollama and DB)
538538

539539
lint: ## Run linters
540540
@printf "$(BLUE)Running linters...$(NC)\n"
541-
@uv run ruff check $(SRC_DIR)/ $(UI_DIR)/ || printf "$(YELLOW)ruff not installed, skipping$(NC)\n"
541+
@if uv run ruff --version >/dev/null 2>&1; then uv run ruff check $(SRC_DIR)/ $(UI_DIR)/; else printf "$(YELLOW)ruff not installed, skipping$(NC)\n"; fi
542542
@printf "$(GREEN)✓ Linting complete$(NC)\n"
543543

544544
format: ## Auto-format code
545545
@printf "$(BLUE)Formatting code...$(NC)\n"
546-
@uv run ruff format $(SRC_DIR)/ $(UI_DIR)/ || printf "$(YELLOW)ruff not installed, skipping$(NC)\n"
546+
@if uv run ruff --version >/dev/null 2>&1; then uv run ruff format $(SRC_DIR)/ $(UI_DIR)/; else printf "$(YELLOW)ruff not installed, skipping$(NC)\n"; fi
547547
@printf "$(GREEN)✓ Formatting complete$(NC)\n"
548548

549+
typecheck: ## Run typecheck
550+
@printf "$(BLUE)Running typecheck...$(NC)\n"
551+
@if uv run mypy --version >/dev/null 2>&1; then uv run mypy $(SRC_DIR)/ $(UI_DIR)/; else printf "$(YELLOW)mypy not installed, skipping$(NC)\n"; fi
552+
@printf "$(GREEN)✓ Typecheck complete$(NC)\n"
553+
549554
##@ Cleanup
550555

551556
clean: ## Clean generated files and caches

0 commit comments

Comments
 (0)