-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
49 lines (33 loc) · 1.29 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
all: check
check: ## Checks the dependencies of the project and install those missing
@./scripts/check
clean: ## Removes artifact folders and files which are cached
@./scripts/clean
install: ## Installs the package, JS requirements, and build templates needed
@./scripts/install
build: ## Builds the package, and templates needed
@./scripts/build
lint: ## Runs a linting pipeline: black, isort, ruff, and mypy
@./scripts/lint
lint-fix: ## Runs a linting pipeline with auto fixing: black, isort, ruff, and mypy
@./scripts/lint --fix
test: ## Runs all tests of the repository
@./scripts/test
publish: ## Publishes the package in PiPy if user and passwords are correct
@./scripts/publish
version: ## Gets the current version of the package
@./scripts/version
isort: ## Runs isort on Flama
@./scripts/isort .
black: ## Runs black on Flama
@./scripts/black .
ruff: ## Runs ruff on Flama
@./scripts/ruff .
pyright: ## Runs pyright on Flama
@./scripts/pyright
docker_push: ## Push docker images to registry
@./scripts/docker_push .
.PHONY: help check clean install build lint tests publish version isort black ruff pyright docker_push
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'