From c1663a265c265748ec12b52810eaaccfe8080a56 Mon Sep 17 00:00:00 2001 From: "ting.wang" Date: Sat, 20 Feb 2016 16:04:05 +0800 Subject: [PATCH] Enable pep8 to check files in directory tools The directory tools is exculed for runing pep8 test now. Enable pep8 to check files in toos/ since there will be more python files. The same in murano: https://review.openstack.org/#/c/281766/3 Change-Id: I7b6ed11d60c35408e7ce5d7386e8486897e7e673 --- tools/install_venv.py | 16 ++++++++-------- tox.ini | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/install_venv.py b/tools/install_venv.py index a261c364..b7b93a24 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -28,16 +28,16 @@ def print_help(venv, root): help = """ Murano agent development environment setup is complete. - Murano agent development uses virtualenv to track and manage Python dependencies - while in development and testing. + Murano agent development uses virtualenv to track and manage Python + dependencies while in development and testing. - To activate the Murano agent virtualenv for the extent of your current shell - session you can run: + To activate the Murano agent virtualenv for the extent of your current + shell session you can run: $ source %s/bin/activate - Or, if you prefer, you can run commands in the virtualenv on a case by case - basis by running: + Or, if you prefer, you can run commands in the virtualenv on a case by + case basis by running: $ %s/tools/with_venv.sh @@ -59,8 +59,8 @@ def main(argv): test_requires = os.path.join(root, 'test-requirements.txt') py_version = "python%s.%s" % (sys.version_info[0], sys.version_info[1]) project = 'Murano agent' - install = install_venv.InstallVenv(root, venv, pip_requires, test_requires, - py_version, project) + install = install_venv.InstallVenv(root, venv, pip_requires, + test_requires, py_version, project) options = install.parse_args(argv) install.check_python_version() install.check_dependencies() diff --git a/tox.ini b/tox.ini index e1eaaf78..9d9dbccc 100644 --- a/tox.ini +++ b/tox.ini @@ -41,4 +41,4 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen [flake8] ignore = F401 show-source = true -exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools +exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg