Skip to content

Commit f24bfe9

Browse files
committed
Add rule for typehint coverage
1 parent ff8e512 commit f24bfe9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ help:
88
@echo " make test-log - run all unit tests and write log to pytest.log"
99
@echo " make test-nb - run nbmake tests on RVC3 vision chapter notebooks"
1010
@echo " make coverage - run unit tests and coverage report"
11+
@echo " make typehints - run mypy type-hint coverage report and open HTML"
1112
@echo " make docs - build Sphinx documentation"
1213
@echo " make view - open Sphinx doco build (uses open for MacOS)"
1314
@echo " make dist - preview dist build"
@@ -35,6 +36,10 @@ coverage:
3536
coverage html
3637
open -a Safari htmlcov/index.html
3738

39+
typehints:
40+
-mypy src/machinevisiontoolbox --ignore-missing-imports --html-report /tmp/mypy-typehints
41+
open -a Safari /tmp/mypy-typehints/index.html
42+
3843
docs: .FORCE
3944
(cd docs; make html O="-w warnings.txt")
4045

0 commit comments

Comments
 (0)