mypy: Enable checks for openstack.tests.fixtures
Change-Id: I718cc71e1b51d951a84c0f09dd16d5df6c9bd113 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
@@ -50,13 +50,7 @@ repos:
|
|||||||
# keep this in-sync with '[mypy] exclude' in 'setup.cfg'
|
# keep this in-sync with '[mypy] exclude' in 'setup.cfg'
|
||||||
exclude: |
|
exclude: |
|
||||||
(?x)(
|
(?x)(
|
||||||
openstack/tests/ansible/.*
|
doc/.*
|
||||||
| openstack/tests/functional/.*
|
|
||||||
| openstack/tests/unit/.*
|
|
||||||
| openstack/tests/fixtures.py
|
|
||||||
| openstack/cloud/.*
|
|
||||||
| openstack/fixture/.*
|
|
||||||
| doc/.*
|
|
||||||
| examples/.*
|
| examples/.*
|
||||||
| releasenotes/.*
|
| releasenotes/.*
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -55,4 +55,4 @@ class WarningsFixture(fixtures.Fixture):
|
|||||||
self.addCleanup(self._reset_warning_filters)
|
self.addCleanup(self._reset_warning_filters)
|
||||||
|
|
||||||
def _reset_warning_filters(self):
|
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
|
# TODO(stephenfin) Eventually we should remove everything here except the
|
||||||
# unit tests module
|
# unit tests module
|
||||||
exclude = (?x)(
|
exclude = (?x)(
|
||||||
openstack/tests/ansible
|
doc
|
||||||
| openstack/tests/functional
|
|
||||||
| openstack/tests/unit
|
|
||||||
| openstack/tests/fixtures.py
|
|
||||||
| openstack/cloud
|
|
||||||
| openstack/fixture
|
|
||||||
| doc
|
|
||||||
| examples
|
| examples
|
||||||
| releasenotes
|
| releasenotes
|
||||||
)
|
)
|
||||||
|
|
||||||
|
[mypy-openstack.cloud.*]
|
||||||
|
ignore_errors = true
|
||||||
|
|
||||||
|
[mypy-openstack.tests.functional.*]
|
||||||
|
ignore_errors = true
|
||||||
|
|
||||||
|
[mypy-openstack.tests.unit.*]
|
||||||
|
ignore_errors = true
|
||||||
|
|||||||
Reference in New Issue
Block a user