-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
78 lines (63 loc) · 1.94 KB
/
Makefile
File metadata and controls
78 lines (63 loc) · 1.94 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# EPGB Options Project Makefile
# Provides convenient commands for common development tasks
.PHONY: help install install-dev check upgrade clean lint format type-check run test
# Default target
help:
@echo "EPGB Options Project Commands"
@echo "============================="
@echo ""
@echo "Setup Commands:"
@echo " make install - Install production dependencies"
@echo " make install-dev - Install development dependencies"
@echo " make check - Check current environment"
@echo " make upgrade - Upgrade all dependencies"
@echo " make clean - Clean virtual environment"
@echo ""
@echo "Development Commands:"
@echo " make lint - Run linting (ruff)"
@echo " make format - Format code (ruff)"
@echo " make type-check - Run type checking (mypy)"
@echo " make run - Run the main application"
@echo ""
@echo "Utility Commands:"
@echo " make config - Run configuration migration"
@echo " make validate - Validate system setup"
# Setup commands
install:
@python setup.py
install-dev:
@python setup.py --dev
check:
@python setup.py --check
upgrade:
@python setup.py --upgrade
clean:
@python setup.py --clean
# Development commands
lint:
@echo "🔍 Running linter..."
@ruff check .
format:
@echo "🎨 Formatting code..."
@ruff format .
type-check:
@echo "🔍 Running type checker..."
@mypy .
# Application commands
run:
@echo "🚀 Running EPGB Options..."
@python main_HM.py
config:
@echo "⚙️ Running configuration migration..."
@python tools/create_configs.py
validate:
@echo "✅ Validating system setup..."
@python validate_system.py
# Combined quality checks
quality: lint type-check
@echo "✅ All quality checks passed"
# Development setup with quality tools
dev-setup: install-dev
@echo "🔧 Setting up pre-commit hooks..."
@pre-commit install || echo "⚠️ pre-commit not available - install with: pip install pre-commit"
@echo "✅ Development setup complete"