[openstack-dev] [Ironic][QA] Static type hint checking

John Villalovos openstack.org at sodarock.com
Sat Oct 15 17:25:09 UTC 2016


I have added an RFE about starting work on adding static type hint checking
to Ironic:
https://bugs.launchpad.net/ironic-lib/+bug/1633756

And a starting patch to openstack/ironic-lib:
https://review.openstack.org/#/c/386892/

A patch to add the 'typing' package to openstack/requirements/global-
requirements.txt:
https://review.openstack.org/386944

Issues:
I tried adding the 'mypy-lang' package to global-requirements but the tool
'generate-constraints' does not handle "Python 3 only" packages. Or I don't
know how to make it handle "Python 3 only" packages.

So I added the dep for 'mypy-lang' as a local dep requirement in the
tox.ini file.

Very interested to hear if anybody else has started working on static type
hint checking in their projects.

Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161015/ab1ff408/attachment.html>


More information about the OpenStack-dev mailing list