From 317ad31637322397f2907e16fa576d6964990f26 Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Sun, 22 Dec 2013 20:31:07 +0000 Subject: [PATCH] Make Glance code base H102 compliant Add the Apache headers where it was missing so the Glance code base can be H102 compliant Change-Id: If19841d1752f7ec364098333429ce090374e79cd Closes-bug: #1263537 --- glance/tests/unit/test_context_middleware.py | 13 +++++++++++++ tools/migrate_image_owners.py | 13 +++++++++++++ tox.ini | 3 +-- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/glance/tests/unit/test_context_middleware.py b/glance/tests/unit/test_context_middleware.py index 5ecb0bf006..146e861095 100644 --- a/glance/tests/unit/test_context_middleware.py +++ b/glance/tests/unit/test_context_middleware.py @@ -1,3 +1,16 @@ +# 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. import webob diff --git a/tools/migrate_image_owners.py b/tools/migrate_image_owners.py index 9aefe7e138..f4f651363f 100644 --- a/tools/migrate_image_owners.py +++ b/tools/migrate_image_owners.py @@ -1,4 +1,17 @@ #!/usr/bin/python +# 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. import sys diff --git a/tox.ini b/tox.ini index df8de5d540..d2e37e3916 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,6 @@ commands = {posargs} # F811 redefinition of function # F821 undefined name 'name' # F841 local variable 'name' assigned but never used -# H102 Apache 2.0 license header not found # H202 assertRaises Exception too broad # H233 use of print operator # H301 one import per line @@ -44,6 +43,6 @@ commands = {posargs} # H402 one line docstring needs punctuation. # H404 multi line docstring should start with a summary # H703 multiple positional placeholders -ignore = E125,E126,E711,E712,F811,F821,F841,H102,H202,H233,H301,H302,H306,H402,H404,H703 +ignore = E125,E126,E711,E712,F811,F821,F841,H202,H233,H301,H302,H306,H402,H404,H703 builtins = _ exclude = .venv,.git,.tox,dist,doc,etc,*glance/locale*,*openstack/common*,*lib/python*,*egg,build