diff options
author | Stephen Finucane <sfinucan@redhat.com> | 2017-06-02 16:45:41 +0100 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2020-05-15 15:59:53 +0100 |
commit | 34ecf5ab91de3316dd0dad8357843b271594f6f0 (patch) | |
tree | d37296e55d80a2f29c61bb582328ee51569dc670 /test-requirements.txt | |
parent | 575a91ff5be79ac35aef4b61d84c78c693693304 (diff) | |
download | nova-34ecf5ab91de3316dd0dad8357843b271594f6f0.tar.gz |
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>
Diffstat (limited to 'test-requirements.txt')
-rw-r--r-- | test-requirements.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test-requirements.txt b/test-requirements.txt index 25ac29b7ef..d42fb05f18 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,6 +3,7 @@ # process, which may cause wedges in the gate later. hacking>=3.0.1,<3.1.0 # Apache-2.0 +mypy>=0.761 # MIT coverage!=4.4,>=4.0 # Apache-2.0 ddt>=1.0.1 # MIT fixtures>=3.0.0 # Apache-2.0/BSD |