Skip to content

Commit cd620ad

Browse files
committed
Add type checking to release work flow
1 parent fef7487 commit cd620ad

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PYTHON=python3.11
55
help:
66
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'
77

8-
clean: clean-build clean-pyc format scan
8+
clean: clean-build clean-pyc format scan type-check
99

1010
clean-build: ## Remove build artifacts
1111
rm -fr build/
@@ -25,6 +25,9 @@ format: ## Run code formatting
2525
scan: ## Run code scanning checks
2626
bandit device_detector -r -c pyproject.toml
2727

28+
type-check: ## Run type checker
29+
mypy device_detector
30+
2831
test: ## Run the tests
2932
$(PYTHON) -m unittest
3033

0 commit comments

Comments
 (0)