From 5843e071d43832448bb7167ca0e8a73ee593b659 Mon Sep 17 00:00:00 2001 From: Julia Varlamova Date: Wed, 5 Feb 2014 15:43:58 +0400 Subject: [PATCH] Enable H304 check Enable H304: no relative imports Fix import in tools/install_venv.py Change-Id: I099ed65db9b42223eaa4b66a3a5c6113d1cc56fe --- tools/install_venv.py | 2 +- tox.ini | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/install_venv.py b/tools/install_venv.py index b9c4795066..b60321e1d2 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -26,7 +26,7 @@ from __future__ import print_function import os import sys -import install_venv_common as install_venv +from tools import install_venv_common as install_venv def print_help(): diff --git a/tox.ini b/tox.ini index 493363ecf9..7b17476a06 100644 --- a/tox.ini +++ b/tox.ini @@ -32,9 +32,8 @@ commands = {posargs} # E712 comparison to True should be 'if cond is True:' or 'if cond:' # F821 undefined name 'name' # H302 import only modules -# H304 no relative imports # H402 one line docstring needs punctuation. # H404 multi line docstring should start with a summary -ignore = E711,E712,F821,H302,H304,H402,H404 +ignore = E711,E712,F821,H302,H402,H404 builtins = _ exclude = .venv,.git,.tox,dist,doc,etc,*glance/locale*,*openstack/common*,*lib/python*,*egg,build