Add `make check-stubs` for validating Python stubs
This commit is contained in:
parent
c394af4128
commit
9582cc5bd5
4
Makefile
4
Makefile
|
@ -245,6 +245,10 @@ stubs:
|
||||||
@$(PYTHON) tools/extract_pyi.py ports/atmel-samd/bindings $(STUBDIR)
|
@$(PYTHON) tools/extract_pyi.py ports/atmel-samd/bindings $(STUBDIR)
|
||||||
@$(PYTHON) setup.py -q sdist
|
@$(PYTHON) setup.py -q sdist
|
||||||
|
|
||||||
|
.PHONY: check-stubs
|
||||||
|
check-stubs: stubs
|
||||||
|
MYPYPATH=$(STUBDIR) mypy --strict $(STUBDIR)
|
||||||
|
|
||||||
update-frozen-libraries:
|
update-frozen-libraries:
|
||||||
@echo "Updating all frozen libraries to latest tagged version."
|
@echo "Updating all frozen libraries to latest tagged version."
|
||||||
cd frozen; for library in *; do cd $$library; ../../tools/git-checkout-latest-tag.sh; cd ..; done
|
cd frozen; for library in *; do cd $$library; ../../tools/git-checkout-latest-tag.sh; cd ..; done
|
||||||
|
|
Loading…
Reference in New Issue