-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 834 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 834 Bytes
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
BOLD := \033[1m
RESET := \033[0m
GREEN := \033[1;32m
default: help
install: ## Install all development dependencies in editable mode
pip install -e .[develop]
.PHONY: install
test: ## Run tests
pytest tests/
.PHONY: test
lint: ## Run ruff check and fix
ruff check . --fix
.PHONY: lint
build: clean ## Build the package
python -m build -s -w
publish: build
twine upload dist/*
.PHONY: publish
clean:
rm -rf dist/
rm -rf build/
.PHONY: clean
backend:
docker-compose run --rm --service-ports backend bash
help:
@echo -e "$(BOLD)django-ltree Makefile$(RESET)"
@echo -e "Please use 'make $(BOLD)target$(RESET)' where $(BOLD)target$(RESET) is one of:"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "$(GREEN)%-30s$(RESET) %s\n", $$1, $$2}'
.PHONY: help