-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 827 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
target:
@printf "Use 'make \033[0;36mtarget\033[0m' where \033[0;36mtarget\033[0m is one of the following:\n\n"
@awk -F ':|##' '/^[^\t].+?:.*?##/ {t[++c]=$$1; d[c]=$$NF; type[c]=1; if(length($$1)>m) m=length($$1)} /^##@/ {type[++c]=0; text[c]=substr($$0, 5)} END {for(i=1;i<=c;i++) if(type[i]==1) printf " \033[0;36m%-*s\033[0m %s\n", m, t[i], d[i]; else {if(h++) printf "\n"; printf "\033[1m%s\033[0m\n", text[i]}}' $(MAKEFILE_LIST)
##@ Code quality
type: ## Run pyright type checker
@uv run pyright --pythonversion 3.13
lint: ## Run ruff linter
@uv run ruff check --config pyproject.toml
##@ Development
install: ## Install dependencies for production
@uv sync --no-dev
install_dev: ## Install dev dependencies
@uv sync
clean: ## Clean the project
rm -rf build dist *.egg-info .venv .ruff_cache
rm uv.lock