We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f96829c commit 3661741Copy full SHA for 3661741
1 file changed
Makefile
@@ -0,0 +1,23 @@
1
+PYTHON ?= python3
2
+PIP := $(PYTHON) -m pip
3
+
4
+.PHONY: install i check c checkinstall ci checkupdate cu help
5
+.DEFAULT_GOAL := help
6
7
+install i: ## Install Python dependencies from requirements.txt
8
+ $(PIP) install -r requirements.txt
9
10
+check c: ## Run pre-commit checks on all files
11
+ pre-commit run --all-files
12
13
+checkinstall ci: ## Install pre-commit hooks
14
+ pre-commit install
15
16
+checkupdate cu: ## Update pre-commit hooks to the latest version
17
+ pre-commit autoupdate
18
19
+help: ## Display this help message
20
+ @echo "Usage: make <target>"
21
+ @echo
22
+ @echo "Available targets:"
23
+ @grep -E '^[a-z]+ [a-z]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
0 commit comments