mypy: Enable checks for openstack.tests.fixtures
Change-Id: I718cc71e1b51d951a84c0f09dd16d5df6c9bd113 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
04a1cd2fb7
commit
200e1524ac
@ -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/.*
|
||||
)
|
||||
|
@ -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]
|
||||
|
17
setup.cfg
17
setup.cfg
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user