diff --git a/muranoagent/app.py b/muranoagent/app.py index 5852d905..e20c6a04 100644 --- a/muranoagent/app.py +++ b/muranoagent/app.py @@ -119,7 +119,7 @@ class MuranoAgent(service.Service): msg.id = result.get('SourceID') routing_key = CONF.rabbitmq.result_routing_key if ('ReplyTo' in result) and CONF.enable_dynamic_result_queue: - routing_key = result.pop('ReplyTo') + routing_key = result.pop('ReplyTo') mq.send(message=msg, key=routing_key, exchange=CONF.rabbitmq.result_exchange) diff --git a/muranoagent/cmd/run.py b/muranoagent/cmd/run.py index a321a42e..cb02fcab 100644 --- a/muranoagent/cmd/run.py +++ b/muranoagent/cmd/run.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# flake8: noqa: E402 + import os import sys diff --git a/muranoagent/executors/__init__.py b/muranoagent/executors/__init__.py index f26edf38..16e2d5b0 100644 --- a/muranoagent/executors/__init__.py +++ b/muranoagent/executors/__init__.py @@ -26,6 +26,7 @@ class ExecutorsRepo(object): return None return self._executors[type](name) + Executors = ExecutorsRepo() diff --git a/test-requirements.txt b/test-requirements.txt index b7c1f8ad..6401a97e 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,7 @@ # 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 # process, which may cause wedges in the gate later. -hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 +hacking>=2.0,<2.1.0 # Apache-2.0 unittest2>=1.1.0 # BSD coverage>=4.5.1 # Apache-2.0 mock>=2.0.0 # BSD diff --git a/tox.ini b/tox.ini index a7d06a49..194d80a3 100644 --- a/tox.ini +++ b/tox.ini @@ -57,7 +57,7 @@ deps = commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [flake8] -ignore = F401 +ignore = F401,W503,W504 show-source = true exclude=.git,.tox,dist,doc,*lib/python*,*egg