-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 1.18 KB
/
Makefile
File metadata and controls
34 lines (24 loc) · 1.18 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
.PHONY: install test test-v lint clean help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-12s\033[0m %s\n", $$1, $$2}'
install: ## Install package in development mode
pip install -e .
test: ## Run tests
python -m pytest tests/ -q
test-v: ## Run tests with verbose output
python -m pytest tests/ -v
test-cov: ## Run tests with coverage
python -m pytest tests/ -v --tb=short
lint: ## Lint with flake8 (if available)
python -m flake8 codevista/ tests/ --max-line-length=88 || true
clean: ## Remove build artifacts
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type d -name .pytest_cache -exec rm -rf {} + 2>/dev/null || true
find . -type d -name *.egg-info -exec rm -rf {} + 2>/dev/null || true
rm -rf build/ dist/ .eggs/ codevista-report.html
demo: ## Run demo analysis on this project
codevista analyze . -o /tmp/codevista-demo.html
quick: ## Quick analysis demo
codevista quick . -o /tmp/codevista-quick.html
compare: ## Compare two directories (usage: make compare DIR1=../project1 DIR2=../project2)
codevista compare $(DIR1) $(DIR2) -o /tmp/codevista-compare.html