Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,8 @@ dmypy.json
conda-setup-cpu
conda-setup-gpu
.DS_Store

# UV
.uv/
uv.lock

36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.PHONY: help sync format lint test cli

help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)

sync: ## Sync dependencies from lockfile
uv sync

format: ## Format code with ruff
uv run ruff format .
uv run ruff check --fix .

lint: ## Run linters
uv run ruff format --check .
uv run ruff check .

test: ## Run tests for a specific asset (usage: make test NAME=aggregate [TYPE=functions])
@if [ -z "$(NAME)" ]; then \
echo "Error: NAME parameter is required"; \
echo "Usage: make test NAME=<asset_name> [TYPE=functions|modules|steps]"; \
echo "Example: make test NAME=aggregate"; \
echo "Example: make test NAME=mymodule TYPE=modules"; \
exit 1; \
fi
@TYPE=$${TYPE:-functions}; \
echo "Running tests for $$TYPE/src/$(NAME)"; \
uv run python -m cli.cli run-tests -r $$TYPE/src/$(NAME) -s py -fn $(NAME)

cli: ## Run the CLI tool (usage: make cli ARGS="command args")
uv run python -m cli.cli $(ARGS)

.DEFAULT_GOAL := help

Loading