mypy: Enable checks for openstack.tests.fixtures

Change-Id: I718cc71e1b51d951a84c0f09dd16d5df6c9bd113
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2024-07-24 12:29:52 +01:00
parent 04a1cd2fb7
commit 200e1524ac
3 changed files with 12 additions and 15 deletions

View File

@ -50,13 +50,7 @@ repos:
# keep this in-sync with '[mypy] exclude' in 'setup.cfg'
exclude: |
(?x)(
openstack/tests/ansible/.*
| openstack/tests/functional/.*
| openstack/tests/unit/.*
| openstack/tests/fixtures.py
| openstack/cloud/.*
| openstack/fixture/.*
| doc/.*
doc/.*
| examples/.*
| releasenotes/.*
)

View File

@ -55,4 +55,4 @@ class WarningsFixture(fixtures.Fixture):
self.addCleanup(self._reset_warning_filters)
def _reset_warning_filters(self):
warnings.filters[:] = self._original_warning_filters
warnings.filters[:] = self._original_warning_filters # type: ignore[index]

View File

@ -43,13 +43,16 @@ warn_unused_ignores = false
# TODO(stephenfin) Eventually we should remove everything here except the
# unit tests module
exclude = (?x)(
openstack/tests/ansible
| openstack/tests/functional
| openstack/tests/unit
| openstack/tests/fixtures.py
| openstack/cloud
| openstack/fixture
| doc
doc
| examples
| releasenotes
)
[mypy-openstack.cloud.*]
ignore_errors = true
[mypy-openstack.tests.functional.*]
ignore_errors = true
[mypy-openstack.tests.unit.*]
ignore_errors = true