nova/tools
Stephen Finucane 34ecf5ab91 tox: Integrate mypy
mypy is an experimental optional static type checker for Python that
aims to combine the benefits of dynamic (or "duck") typing and static
typing. While still in development, most features are supported and it's
already being used by real world projects like Sphinx. Let's start small
by integrating it into some of the interfaces that nova exposes. We can
further build upon this if it works out.

This change sets up the boilerplate necessary to use mypy in nova. Type
annotations are not included for any module - these will be added
separately. We're calling mypy by way of a script, as this allows us to
store a list of files that we have converted while we're in the process
of adding type annotations where necessary.

Change-Id: I75ab46a6768c4ca2050fdde2b7f8eeb90724c8c6
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-05-15 15:59:53 +01:00
..
db Remove future imports 2020-03-24 15:05:36 +00:00
hooks move gate hooks to gate/ 2017-01-04 11:05:16 +00:00
xenserver Make Xen code py3-compatible 2018-08-10 20:04:19 +00:00
abandon_old_reviews.sh Replace git.openstack.org URLs with opendev.org URLs 2019-04-24 13:59:57 +08:00
build_latex_pdf.sh Add tool to build a doc latex pdf 2015-07-14 16:13:47 -04:00
flake8wrap.sh Integrate 'pre-commit' 2019-11-28 12:46:55 +00:00
mypywrap.sh tox: Integrate mypy 2020-05-15 15:59:53 +01:00
nova-manage.bash_completion Keep pre-commit inline with hacking and fix whitespace 2019-12-12 14:56:39 +00:00
reserve-migrations.py Prevent blank line at start of migration placeholders 2017-08-25 18:43:19 +01:00
run-tests-for-diff.sh Make it easier to run a selection of tests relevant to ongoing work 2019-08-19 17:48:39 +01:00
run-tests.py Make it easier to run a selection of tests relevant to ongoing work 2019-08-19 17:48:39 +01:00
test-setup.sh Prepare for using standard python tests 2017-02-09 17:52:55 +00:00