Skip to content

Commit 900750d

Browse files
committed
Add help target to Makefile
1 parent 3d3f632 commit 900750d

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
SRC_DIRS := src/ test/ # FIXME
33

44
# Tasks
5+
.PHONY: help
6+
help:
7+
@echo "Available targets:"
8+
@echo " format : Format code using Black and isort"
9+
@echo " check_format : Check code formatting with Black and isort"
10+
@echo " lint : Run pylint and Mypy for static code analysis"
11+
@echo " test : Run tests using pytest"
12+
@echo " clean : Clean up caches and build artifacts"
13+
@echo " run_local_checks : Run format, lint, and test"
14+
@echo " help : Show this help message"
15+
516
.PHONY: format
617
format:
718
@echo "==> Formatting code..."
@@ -23,7 +34,6 @@ lint:
2334
@echo "==> Running Mypy..."
2435
@poetry run mypy $(SRC_DIRS)
2536

26-
2737
.PHONY: test
2838
test:
2939
@echo "==> Running tests..."
@@ -41,5 +51,4 @@ clean:
4151
@rm -rf dist
4252
@rm -rf *.egg-info
4353

44-
4554
run_local_checks: format lint test

0 commit comments

Comments
 (0)