summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJohn L. Villalovos <john.l.villalovos@intel.com>2017-09-22 10:47:14 -0700
committerJohn L. Villalovos <john.l.villalovos@intel.com>2017-09-23 12:28:14 -0700
commitb67f9c12989c4c411f9416a22e360e9df74231b2 (patch)
treec354b82591e99f19aae0bca7586df9e5c8d9ac4c /tox.ini
parent9ed2677c9d06eaa4e8b4348011b28bef9fe7b62d (diff)
downloadironic-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.ini5
1 files changed, 4 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 5829b440..d0f6e1a2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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