Bump hacking to 3.0.0
The new version enables a lot of standard flake8 checks, so a few
fixes are required. W503 is disabled as it conflicts with W504
and the latter seems to be preferred nowadays.
Change-Id: I3b1e20193a2cb3d28046ad0f2008577a95aaaefd
diff --git a/ironic_tempest_plugin/common/waiters.py b/ironic_tempest_plugin/common/waiters.py
index 554e5f8..c5b9bd0 100644
--- a/ironic_tempest_plugin/common/waiters.py
+++ b/ironic_tempest_plugin/common/waiters.py
@@ -28,9 +28,9 @@
timeout = default_timeout
if interval is None:
interval = default_interval
- if (not isinstance(timeout, six.integer_types) or
- not isinstance(interval, six.integer_types) or
- timeout < 0 or interval < 0):
+ if (not isinstance(timeout, six.integer_types)
+ or not isinstance(interval, six.integer_types)
+ or timeout < 0 or interval < 0):
raise AssertionError(
'timeout and interval should be >= 0 or None, current values are: '
'%(timeout)s, %(interval)s respectively. If timeout and/or '