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
This commit is contained in:
Yanis Guenane 2013-12-22 20:31:07 +00:00
parent 677bc5c51c
commit 317ad31637
3 changed files with 27 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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