iotests/linters: check mypy files all at once
commitf39decb583669e4335eaf2d1a5b8183254df51d6
authorJohn Snow <jsnow@redhat.com>
Thu, 23 Sep 2021 18:07:12 +0000 (23 14:07 -0400)
committerKevin Wolf <kwolf@redhat.com>
Wed, 6 Oct 2021 08:25:55 +0000 (6 10:25 +0200)
treeb0da2f21005cf11d5220453d98086796348685ab
parentaf6d4c56e15a45fb4d0cdf8d0335275b5ed8fbf7
iotests/linters: check mypy files all at once

We can circumvent the '__main__' redefinition problem by passing
--scripts-are-modules. Take mypy out of the loop per-filename and check
everything in one go: it's quite a bit faster.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210923180715.4168522-4-jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/297