Enable some off-by-default checks

Some of the available checks are disabled by default, like:
[H203] Use assertIs(Not)None to check for None

Change-Id: I59dafb62cedc5217b6e5eb6efb997a9ee3c29bbb
This commit is contained in:
blue55 2017-06-22 14:51:37 +08:00
parent 7653cff5e6
commit 20c23d8ccb
3 changed files with 4 additions and 6 deletions

View File

@ -64,10 +64,7 @@ class VolumeServiceTests(common.BaseVolumeTests):
'enabled',
cmd_output[0]['Status']
)
self.assertEqual(
None,
cmd_output[0]['Disabled Reason']
)
self.assertIsNone(cmd_output[0]['Disabled Reason'])
# Test volume service set --disable and --disable-reason
disable_reason = 'disable_reason'

View File

@ -64,8 +64,7 @@ class VolumeServiceTests(common.BaseVolumeTests):
'enabled',
cmd_output[0]['Status']
)
self.assertEqual(
None,
self.assertIsNone(
cmd_output[0]['Disabled Reason']
)

View File

@ -85,6 +85,8 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
[flake8]
show-source = True
# H203: Use assertIs(Not)None to check for None
enable-extensions = H203
exclude = .git,.tox,dist,doc,*lib/python*,*egg,build,tools
# If 'ignore' is not set there are default errors and warnings that are set
# Doc: http://flake8.readthedocs.org/en/latest/config.html#default