summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>2013-06-25 14:09:54 +0400
committerAnn Kamyshnikova <akamyshnikova@mirantis.com>2013-07-04 11:00:22 +0400
commit60cafbdd9655c6ee2a6ec1cc725e1cc9e5c3a37b (patch)
tree40d7ec884f08616c5f5b7140ac35457c6288d202
parent98d8fda44d8580b4d726708a91614114c32bd521 (diff)
downloadoslo-60cafbdd9655c6ee2a6ec1cc725e1cc9e5c3a37b.zip
oslo-60cafbdd9655c6ee2a6ec1cc725e1cc9e5c3a37b.tar.gz
oslo-60cafbdd9655c6ee2a6ec1cc725e1cc9e5c3a37b.tar.xz
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
-rw-r--r--test-requirements.txt2
-rw-r--r--tools/patch_tox_venv.py2
-rw-r--r--tox.ini2
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]