-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (34 loc) · 1.17 KB
/
Makefile
File metadata and controls
47 lines (34 loc) · 1.17 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
.PHONY: help install dev test clean format lint run
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install dependencies
pip install -e .
dev: ## Install development dependencies
pip install -e ".[dev]"
pre-commit install
test: ## Run tests
pytest
test-cov: ## Run tests with coverage
pytest --cov=cloudmusic --cov-report=html --cov-report=term
clean: ## Clean build artifacts
rm -rf build dist *.egg-info .pytest_cache .coverage htmlcov .mypy_cache
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
format: ## Format code with black and isort
black .
isort .
lint: ## Run linters (mypy, flake8)
mypy cloudmusic
flake8 cloudmusic
check: format lint test ## Run all checks (format, lint, test)
run: ## Run CloudMusic TUI
python -m cloudmusic.tui.app
build: ## Build distribution packages
python -m build
publish: ## Publish to PyPI (requires twine)
twine upload dist/*
dev-server: ## Run in development mode with auto-reload
@echo "Development mode not yet implemented"