Enable H304 check

Enable H304: no relative imports

Fix import in tools/install_venv.py

Change-Id: I099ed65db9b42223eaa4b66a3a5c6113d1cc56fe
This commit is contained in:
Julia Varlamova 2014-02-05 15:43:58 +04:00 committed by Gerrit Code Review
parent 49d3220d94
commit 5843e071d4
2 changed files with 2 additions and 3 deletions

View File

@ -26,7 +26,7 @@ from __future__ import print_function
import os import os
import sys import sys
import install_venv_common as install_venv from tools import install_venv_common as install_venv
def print_help(): def print_help():

View File

@ -32,9 +32,8 @@ commands = {posargs}
# E712 comparison to True should be 'if cond is True:' or 'if cond:' # E712 comparison to True should be 'if cond is True:' or 'if cond:'
# F821 undefined name 'name' # F821 undefined name 'name'
# H302 import only modules # H302 import only modules
# H304 no relative imports
# H402 one line docstring needs punctuation. # H402 one line docstring needs punctuation.
# H404 multi line docstring should start with a summary # 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 = _ builtins = _
exclude = .venv,.git,.tox,dist,doc,etc,*glance/locale*,*openstack/common*,*lib/python*,*egg,build exclude = .venv,.git,.tox,dist,doc,etc,*glance/locale*,*openstack/common*,*lib/python*,*egg,build