From c6aa8b514aa8d789f315f17cfa72b9415f88338f Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Wed, 16 Jul 2014 19:29:32 +0200 Subject: [PATCH] Enable hacking check H104 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [H104] Files with no code shouldn’t contain any license header nor comments, and must be left completely empty. Change-Id: Ifedda6947bc9376533a19ded9fc6a70fd147f66f --- tacker/agent/__init__.py | 16 ---------------- tacker/agent/common/__init__.py | 16 ---------------- tacker/agent/linux/__init__.py | 16 ---------------- tacker/tests/__init__.py | 16 ---------------- tacker/tests/functional/__init__.py | 15 --------------- tacker/tests/functional/agent/__init__.py | 15 --------------- tacker/tests/functional/agent/linux/__init__.py | 15 --------------- tacker/tests/unit/agent/__init__.py | 15 --------------- tacker/tests/unit/agent/linux/__init__.py | 15 --------------- tacker/tests/unit/db/__init__.py | 15 --------------- tacker/tests/unit/extensions/__init__.py | 15 --------------- tacker/tests/unit/services/__init__.py | 17 ----------------- tox.ini | 2 +- 13 files changed, 1 insertion(+), 187 deletions(-) diff --git a/tacker/agent/__init__.py b/tacker/agent/__init__.py index 0b3d2db5e..e69de29bb 100644 --- a/tacker/agent/__init__.py +++ b/tacker/agent/__init__.py @@ -1,16 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2012 OpenStack Foundation -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/agent/common/__init__.py b/tacker/agent/common/__init__.py index 0b3d2db5e..e69de29bb 100644 --- a/tacker/agent/common/__init__.py +++ b/tacker/agent/common/__init__.py @@ -1,16 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2012 OpenStack Foundation -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/agent/linux/__init__.py b/tacker/agent/linux/__init__.py index 0b3d2db5e..e69de29bb 100644 --- a/tacker/agent/linux/__init__.py +++ b/tacker/agent/linux/__init__.py @@ -1,16 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2012 OpenStack Foundation -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/tests/__init__.py b/tacker/tests/__init__.py index 2d32e4ef3..e69de29bb 100644 --- a/tacker/tests/__init__.py +++ b/tacker/tests/__init__.py @@ -1,16 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright (c) 2011 OpenStack Foundation. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/tests/functional/__init__.py b/tacker/tests/functional/__init__.py index ac4d6cbf6..e69de29bb 100644 --- a/tacker/tests/functional/__init__.py +++ b/tacker/tests/functional/__init__.py @@ -1,15 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2013 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/tests/functional/agent/__init__.py b/tacker/tests/functional/agent/__init__.py index ac4d6cbf6..e69de29bb 100644 --- a/tacker/tests/functional/agent/__init__.py +++ b/tacker/tests/functional/agent/__init__.py @@ -1,15 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2013 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/tests/functional/agent/linux/__init__.py b/tacker/tests/functional/agent/linux/__init__.py index ac4d6cbf6..e69de29bb 100644 --- a/tacker/tests/functional/agent/linux/__init__.py +++ b/tacker/tests/functional/agent/linux/__init__.py @@ -1,15 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2013 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/tests/unit/agent/__init__.py b/tacker/tests/unit/agent/__init__.py index ac4d6cbf6..e69de29bb 100644 --- a/tacker/tests/unit/agent/__init__.py +++ b/tacker/tests/unit/agent/__init__.py @@ -1,15 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2013 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/tests/unit/agent/linux/__init__.py b/tacker/tests/unit/agent/linux/__init__.py index ac4d6cbf6..e69de29bb 100644 --- a/tacker/tests/unit/agent/linux/__init__.py +++ b/tacker/tests/unit/agent/linux/__init__.py @@ -1,15 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2013 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/tests/unit/db/__init__.py b/tacker/tests/unit/db/__init__.py index cae279d0a..e69de29bb 100644 --- a/tacker/tests/unit/db/__init__.py +++ b/tacker/tests/unit/db/__init__.py @@ -1,15 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2013 OpenStack Foundation -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/tests/unit/extensions/__init__.py b/tacker/tests/unit/extensions/__init__.py index 4ac574e58..e69de29bb 100644 --- a/tacker/tests/unit/extensions/__init__.py +++ b/tacker/tests/unit/extensions/__init__.py @@ -1,15 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2011 OpenStack Foundation -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff --git a/tacker/tests/unit/services/__init__.py b/tacker/tests/unit/services/__init__.py index ce18bf6d6..e69de29bb 100644 --- a/tacker/tests/unit/services/__init__.py +++ b/tacker/tests/unit/services/__init__.py @@ -1,17 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 -# -# Copyright 2013 New Dream Network, LLC (DreamHost) -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# 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: Mark McClain, DreamHost diff --git a/tox.ini b/tox.ini index 336800153..ddf715b26 100644 --- a/tox.ini +++ b/tox.ini @@ -75,7 +75,7 @@ commands = {posargs} # H405 multi line docstring summary not separated with an empty line # H904 Wrap long lines in parentheses instead of a backslash # TODO(marun) H404 multi line docstring should start with a summary -ignore = E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H104,H237,H302,H304,H305,H307,H401,H402,H404,H405,H904 +ignore = E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H237,H302,H304,H305,H307,H401,H402,H404,H405,H904 show-source = true builtins = _ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject