From 60cafbdd9655c6ee2a6ec1cc725e1cc9e5c3a37b Mon Sep 17 00:00:00 2001 From: Ann Kamyshnikova Date: Tue, 25 Jun 2013 14:09:54 +0400 Subject: Enable H304 hacking check The error was: 'import install_venv_common as install_venv' is a relative import To fix it __init__.py was created and import string was fixed. Requirements for hacking changed to >=0.5.6 Change-Id: I71aa7c7cb268c26aa00828306138a84b30289cb9 --- test-requirements.txt | 2 +- tools/patch_tox_venv.py | 2 +- tox.ini | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 7ffabfe..8fbc5ab 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,7 +2,7 @@ coverage discover fixtures>=0.3.12 flake8==2.0 -hacking>=0.5.3,<0.6 +hacking>=0.5.6,<0.6 mock mox==0.5.3 mysql-python diff --git a/tools/patch_tox_venv.py b/tools/patch_tox_venv.py index a3340f2..dc9ce83 100644 --- a/tools/patch_tox_venv.py +++ b/tools/patch_tox_venv.py @@ -17,7 +17,7 @@ import os import sys -import install_venv_common as install_venv +import install_venv_common as install_venv # noqa def first_file(file_list): diff --git a/tox.ini b/tox.ini index bd9e5d7..ad939f1 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ commands = [flake8] show-source = True -ignore = H302,H304 +ignore = H302 exclude = .venv,.tox,dist,doc,*.egg,.update-venv [testenv:pep8] -- cgit