Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. blacklist: W504 line break after binary operator Fix: E305 expected 2 blank lines after class or function definition, found 1 Change-Id: I56d62f67914f07e7aef74f857c4b42e3bfd3416e
This commit is contained in:
parent
bf5b45ebba
commit
4e6fe7cf7d
|
@ -1076,6 +1076,7 @@ class _TransactionContextManager(object):
|
||||||
def async_compat(self):
|
def async_compat(self):
|
||||||
return self.async_
|
return self.async_
|
||||||
|
|
||||||
|
|
||||||
setattr(
|
setattr(
|
||||||
_TransactionContextManager,
|
_TransactionContextManager,
|
||||||
"async", async_compat
|
"async", async_compat
|
||||||
|
|
|
@ -427,6 +427,7 @@ def _raise_for_all_others(error, match, engine_name, is_disconnect):
|
||||||
LOG.warn('DB exception wrapped.', exc_info=True)
|
LOG.warn('DB exception wrapped.', exc_info=True)
|
||||||
raise exception.DBError(error)
|
raise exception.DBError(error)
|
||||||
|
|
||||||
|
|
||||||
ROLLBACK_CAUSE_KEY = 'oslo.db.sp_rollback_cause'
|
ROLLBACK_CAUSE_KEY = 'oslo.db.sp_rollback_cause'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1026,6 +1026,7 @@ class DialectMultiFunctionDispatcher(DialectFunctionDispatcher):
|
||||||
"Return value not allowed for "
|
"Return value not allowed for "
|
||||||
"multiple filtered function")
|
"multiple filtered function")
|
||||||
|
|
||||||
|
|
||||||
dispatch_for_dialect = DialectFunctionDispatcher.dispatch_for_dialect
|
dispatch_for_dialect = DialectFunctionDispatcher.dispatch_for_dialect
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ from oslotest import base as test_base
|
||||||
class Context(object):
|
class Context(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
context = Context()
|
context = Context()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# The order of packages is significant, because pip processes them in the order
|
# The order of packages is significant, because pip processes them in the order
|
||||||
# of appearance. Changing the order has an impact on the overall integration
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
hacking>=1.1.0,<1.2.0 # Apache-2.0
|
hacking>=3.0,<3.1.0 # Apache-2.0
|
||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
eventlet!=0.18.3,!=0.20.1,>=0.18.2 # MIT
|
eventlet!=0.18.3,!=0.20.1,>=0.18.2 # MIT
|
||||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -63,7 +63,7 @@ commands =
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# E123, E125 skipped as they are invalid PEP-8.
|
# E123, E125 skipped as they are invalid PEP-8.
|
||||||
ignore = E123,E125
|
ignore = E123,E125,W504
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue