-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
26 lines (18 loc) · 633 Bytes
/
Makefile
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
.PHONY: clean install lock run build test lint help
.DEFAULT_GOAL := help
clean: ## Clean build files
rm -rf dist
install: ## Install dependencies
poetry install
lock: ## Update poetry.lock
poetry lock
run: ## Run project
poetry run check-filter
build: clean ## Build package
poetry build
test: ## Run tests
poetry run pytest
lint: ## Lint files
find . -name "*.py" -not -ipath "./.venv/*" | xargs python3 -m pylint --rcfile=.pylintrc --ignore-patterns=test_.*?py
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'