diff options
author | Ann Kamyshnikova <akamyshnikova@mirantis.com> | 2013-06-25 14:09:54 +0400 |
---|---|---|
committer | Ann Kamyshnikova <akamyshnikova@mirantis.com> | 2013-07-04 11:00:22 +0400 |
commit | 60cafbdd9655c6ee2a6ec1cc725e1cc9e5c3a37b (patch) | |
tree | 40d7ec884f08616c5f5b7140ac35457c6288d202 | |
parent | 98d8fda44d8580b4d726708a91614114c32bd521 (diff) | |
download | oslo-60cafbdd9655c6ee2a6ec1cc725e1cc9e5c3a37b.tar.gz oslo-60cafbdd9655c6ee2a6ec1cc725e1cc9e5c3a37b.tar.xz oslo-60cafbdd9655c6ee2a6ec1cc725e1cc9e5c3a37b.zip |
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.txt | 2 | ||||
-rw-r--r-- | tools/patch_tox_venv.py | 2 | ||||
-rw-r--r-- | 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): @@ -13,7 +13,7 @@ commands = [flake8] show-source = True -ignore = H302,H304 +ignore = H302 exclude = .venv,.tox,dist,doc,*.egg,.update-venv [testenv:pep8] |