diff options
author | John L. Villalovos <john.l.villalovos@intel.com> | 2017-09-22 10:47:14 -0700 |
---|---|---|
committer | John L. Villalovos <john.l.villalovos@intel.com> | 2017-09-23 12:28:14 -0700 |
commit | b67f9c12989c4c411f9416a22e360e9df74231b2 (patch) | |
tree | c354b82591e99f19aae0bca7586df9e5c8d9ac4c /tox.ini | |
parent | 9ed2677c9d06eaa4e8b4348011b28bef9fe7b62d (diff) | |
download | ironic-python-agent-b67f9c12989c4c411f9416a22e360e9df74231b2.tar.gz |
flake8: Enable some off-by-default checks
Enable the following off-by-default checks:
* [H204] Use assert(Not)Equal to check for equality.
* [H205] Use assert(Greater|Less)(Equal) for comparison.
* [H210] Require ‘autospec’, ‘spec’, or ‘spec_set’ in
mock.patch/mock.patch.object calls
Increase the version of hacking in test-requirements so that can use new
off-by-default checks.
No changes to code were required.
Change-Id: I98aa484dc5414ee49c281dfd40e44b3c613d53e0
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -69,8 +69,11 @@ import-order-style = pep8 application-import-names = ironic_python_agent # [H106] Don't put vim configuration in source files. # [H203] Use assertIs(Not)None to check for None. +# [H204] Use assert(Not)Equal to check for equality. +# [H205] Use assert(Greater|Less)(Equal) for comparison. +# [H210] Require ‘autospec’, ‘spec’, or ‘spec_set’ in mock.patch/mock.patch.object calls # [H904] Delay string interpolations at logging calls. -enable-extensions=H106,H203,H904 +enable-extensions=H106,H203,H204,H205,H210,H904 [hacking] import_exceptions = ironic.openstack.common.gettextutils._,testtools.matchers |