qa: Add mypy to make check

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
This commit is contained in:
Sebastian Wagner 2021-06-18 11:35:43 +02:00
parent ad7bec46d7
commit 81305b0da9
No known key found for this signature in database
GPG Key ID: 8D2442807E6979F8
2 changed files with 4 additions and 4 deletions

View File

@ -5,5 +5,5 @@ endif()
if(WITH_TESTS)
include(AddCephTest)
add_tox_test(qa TOX_ENVS py3 flake8 import-tasks)
add_tox_test(qa TOX_ENVS py3 flake8 import-tasks mypy)
endif()

View File

@ -23,9 +23,9 @@ def timeout(seconds):
"""
introduced by Linux 3.15
"""
fcntl.F_OFD_GETLK = 36
fcntl.F_OFD_SETLK = 37
fcntl.F_OFD_SETLKW = 38
setattr(fcntl, "F_OFD_GETLK", 36)
setattr(fcntl, "F_OFD_SETLK", 37)
setattr(fcntl, "F_OFD_SETLKW", 38)
def main():