π OpenHands: AI-Driven Development
Fix make lint dependencies to work out of the box (#9983)
Graham Neubigb75a61bce997
diff --git a/Makefile b/Makefileindex f98d8b3408..7bb12e417a 100644--- a/Makefile+++ b/Makefile@@ -174,7 +174,7 @@ install-python-dependencies:fi@echo "$(GREEN)Python dependencies installed successfully.$(RESET)"-install-frontend-dependencies:+install-frontend-dependencies: check-npm check-nodejs@echo "$(YELLOW)Setting up frontend environment...$(RESET)"@echo "$(YELLOW)Detect Node.js version...$(RESET)"@cd frontend && node ./scripts/detect-node-version.js@@ -182,17 +182,17 @@ install-frontend-dependencies:@cd frontend && npm install@echo "$(GREEN)Frontend dependencies installed successfully.$(RESET)"-install-pre-commit-hooks:+install-pre-commit-hooks: check-python check-poetry install-python-dependencies@echo "$(YELLOW)Installing pre-commit hooks...$(RESET)"@git config --unset-all core.hooksPath || true@poetry run pre-commit install --config $(PRE_COMMIT_CONFIG_PATH)@echo "$(GREEN)Pre-commit hooks installed successfully.$(RESET)"-lint-backend:+lint-backend: install-pre-commit-hooks@echo "$(YELLOW)Running linters...$(RESET)"@poetry run pre-commit run --all-files --show-diff-on-failure --config $(PRE_COMMIT_CONFIG_PATH)-lint-frontend:+lint-frontend: install-frontend-dependencies@echo "$(YELLOW)Running linters for frontend...$(RESET)"@cd frontend && npm run lint