From ca1ad7c9301ab8165401458323b072c616c89fce Mon Sep 17 00:00:00 2001 From: Martin Oemke <zeih@zeih.eu> Date: Tue, 22 Dec 2015 00:31:13 +0100 Subject: [PATCH] Fix H105 errors in tackerclient code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This Patch fixes all H105 errors and enables this test. [H105] Don’t use author tags. We use version control instead. Change-Id: I60e9e844b420b31b8caa86d5338cf04322386506 Related-Bug: 1516045 --- tackerclient/tacker/v1_0/vm/device.py | 2 -- tackerclient/tacker/v1_0/vm/device_template.py | 1 - tackerclient/tacker/v1_0/vm/vnf.py | 2 -- tackerclient/tacker/v1_0/vm/vnfd.py | 2 -- tackerclient/tests/unit/test_command_meta.py | 2 -- tackerclient/tests/unit/vm/test_cli10_device.py | 2 -- tackerclient/tests/unit/vm/test_cli10_device_template.py | 2 -- tackerclient/version.py | 1 - tox.ini | 3 +-- 9 files changed, 1 insertion(+), 16 deletions(-) diff --git a/tackerclient/tacker/v1_0/vm/device.py b/tackerclient/tacker/v1_0/vm/device.py index d21ccfb4..4a3af21c 100644 --- a/tackerclient/tacker/v1_0/vm/device.py +++ b/tackerclient/tacker/v1_0/vm/device.py @@ -16,8 +16,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -# -# @author: Isaku Yamahata, Intel from tackerclient.common import exceptions from tackerclient.openstack.common.gettextutils import _ diff --git a/tackerclient/tacker/v1_0/vm/device_template.py b/tackerclient/tacker/v1_0/vm/device_template.py index 32fb7b11..9f69f95f 100644 --- a/tackerclient/tacker/v1_0/vm/device_template.py +++ b/tackerclient/tacker/v1_0/vm/device_template.py @@ -17,7 +17,6 @@ # License for the specific language governing permissions and limitations # under the License. # -# @author: Isaku Yamahata, Intel from tackerclient.tacker import v1_0 as tackerV10 diff --git a/tackerclient/tacker/v1_0/vm/vnf.py b/tackerclient/tacker/v1_0/vm/vnf.py index 9060606b..2f76dd81 100644 --- a/tackerclient/tacker/v1_0/vm/vnf.py +++ b/tackerclient/tacker/v1_0/vm/vnf.py @@ -16,8 +16,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -# -# @author: Isaku Yamahata, Intel from tackerclient.tacker import v1_0 as tackerV10 diff --git a/tackerclient/tacker/v1_0/vm/vnfd.py b/tackerclient/tacker/v1_0/vm/vnfd.py index ce096a6d..cc6d245a 100644 --- a/tackerclient/tacker/v1_0/vm/vnfd.py +++ b/tackerclient/tacker/v1_0/vm/vnfd.py @@ -16,8 +16,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -# -# @author: Isaku Yamahata, Intel from __future__ import print_function diff --git a/tackerclient/tests/unit/test_command_meta.py b/tackerclient/tests/unit/test_command_meta.py index c5a74c09..c8350b0a 100644 --- a/tackerclient/tests/unit/test_command_meta.py +++ b/tackerclient/tests/unit/test_command_meta.py @@ -15,8 +15,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -# -# @author: Isaku Yamahata, Intel import logging diff --git a/tackerclient/tests/unit/vm/test_cli10_device.py b/tackerclient/tests/unit/vm/test_cli10_device.py index 9a5e1594..03162b92 100644 --- a/tackerclient/tests/unit/vm/test_cli10_device.py +++ b/tackerclient/tests/unit/vm/test_cli10_device.py @@ -17,8 +17,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -# -# @author: Isaku Yamahata, Intel import sys diff --git a/tackerclient/tests/unit/vm/test_cli10_device_template.py b/tackerclient/tests/unit/vm/test_cli10_device_template.py index 55ad3a08..00b59b22 100644 --- a/tackerclient/tests/unit/vm/test_cli10_device_template.py +++ b/tackerclient/tests/unit/vm/test_cli10_device_template.py @@ -17,8 +17,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -# -# @author: Isaku Yamahata, Intel import sys diff --git a/tackerclient/version.py b/tackerclient/version.py index 480f9297..50d97d37 100644 --- a/tackerclient/version.py +++ b/tackerclient/version.py @@ -14,7 +14,6 @@ # under the License. # # vim: tabstop=4 shiftwidth=4 softtabstop=4 -# @author: Carl Baldwin, Hewlett-Packard import pbr.version diff --git a/tox.ini b/tox.ini index 2517792e..5c58dc2a 100644 --- a/tox.ini +++ b/tox.ini @@ -27,9 +27,8 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' [flake8] # E125 continuation line does not distinguish itself from next logical line # H302 import only modules -# H105 Don't use author tags # H405 multi line docstring summary not separated with an empty line # H238 old style class declaration, use new style (inherit from `object`) -ignore = E125,H302,H105,H405,H238 +ignore = E125,H302,H405,H238 show-source = true exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools