File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+ # SPDX-License-Identifier: Apache-2.0
3+
14name : CI
25
36on :
Original file line number Diff line number Diff line change 11REPO_PATH := $(shell pwd)
22
3+ define install-pre-commit-hooks
4+ @if [ ! -f $(REPO_PATH ) /.git/hooks/pre-commit ]; then \
5+ echo "🪝 Installing pre-commit hooks..."; \
6+ uv run pre-commit install; \
7+ else \
8+ echo "👍 Pre-commit hooks already installed"; \
9+ fi
10+ endef
11+
312help :
413 @echo " "
514 @echo " 🚀 DataDesigner Makefile Commands"
@@ -89,11 +98,13 @@ install:
8998install-dev :
9099 @echo " 📦 Installing project with dev dependencies..."
91100 uv sync --group dev
101+ $(call install-pre-commit-hooks)
92102 @echo " ✅ Dev installation complete!"
93103
94104install-dev-notebooks :
95105 @echo " 📦 Installing project with notebook dependencies..."
96106 uv sync --group dev --group notebooks
107+ $(call install-pre-commit-hooks)
97108 @echo " ✅ Dev + notebooks installation complete!"
98109
99110.PHONY : clean coverage format format-check lint lint-fix test check-license-headers update-license-headers check-all check-all-fix install install-dev install-dev-notebooks
You can’t perform that action at this time.
0 commit comments