-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 1.3 KB
/
Makefile
File metadata and controls
50 lines (36 loc) · 1.3 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
.PHONY: help install install-dev test lint format clean build upload
help: ## Show this help message
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## Install the package
uv sync
install-dev: ## Install the package with development dependencies
uv sync --dev
test: ## Run tests
uv run pytest tests/ -v
test-cov: ## Run tests with coverage
uv run pytest tests/ --cov=gmail_to_sqlite --cov-report=html --cov-report=term
lint: ## Run linting
uv run flake8 gmail_to_sqlite tests
uv run mypy gmail_to_sqlite
format: ## Format code
uv run black gmail_to_sqlite tests
format-check: ## Check code formatting
uv run black --check gmail_to_sqlite tests
clean: ## Clean build artifacts
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
build: ## Build the package
uv build
upload: ## Upload to PyPI (requires authentication)
uv publish
dev-setup: ## Set up development environment
uv sync --dev
uv run pre-commit install
run: ## Run the application (requires credentials.json)
uv run python -m gmail_to_sqlite
run-cli: ## Run via installed CLI command
uv run gmail-to-sqlite