-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (43 loc) · 1.5 KB
/
Copy pathMakefile
File metadata and controls
58 lines (43 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.PHONY: install install-dev test clean build help install-skills
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install-skills: ## Install skills to ~/.claude/skills/
cp -r skills/* ~/.claude/skills/
@echo "Skills installed to ~/.claude/skills/"
install: ## Install the package
pip install -e .
install-dev: ## Install with development dependencies
pip install -e ".[dev]"
test: ## Run tests
python test_cli.py
clean: ## Clean build artifacts
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf .ruff_cache
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
build: clean ## Build the package
python -m build
format: ## Format code with black
black src/
lint: ## Lint code with ruff
ruff check src/
publish: build ## Build and publish to PyPI (requires credentials
twine upload dist/*
# Convenience targets for testing commands
stock-history: ## Test stock history command
efinance-cli stock history 600519 --limit 10
stock-realtime: ## Test stock realtime command
efinance-cli stock realtime --limit 10
fund-history: ## Test fund history command
efinance-cli fund history 161725 --limit 10
bond-realtime: ## Test bond realtime command
efinance-cli bond realtime --limit 10
futures-info: ## Test futures info command
efinance-cli futures info --limit 10