Skip to content

Commit e9bb737

Browse files
committed
update makefile and add license to workflow
1 parent db34f38 commit e9bb737

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
name: CI
25

36
on:

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
REPO_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+
312
help:
413
@echo ""
514
@echo "🚀 DataDesigner Makefile Commands"
@@ -89,11 +98,13 @@ install:
8998
install-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

94104
install-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

0 commit comments

Comments
 (0)