From 74117eb8b68ede54b471b92c36a474186171715d Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 5 Nov 2013 13:08:06 -0500 Subject: [PATCH] Gate on H102 Apache 2.0 license header not found for pep8 Now all files are properly licensed per OpenStack Hacking. Change-Id: I223d983018568357197b0d9cf5dde12c135c53c9 Signed-off-by: Paul Belanger --- doc/source/conf.py | 2 -- horizon/conf/__init__.py | 12 ++++++++++++ horizon/conf/default.py | 12 ++++++++++++ horizon/loaders.py | 12 ++++++++++++ horizon/management/commands/startdash.py | 12 ++++++++++++ horizon/management/commands/startpanel.py | 12 ++++++++++++ horizon/tabs/views.py | 12 ++++++++++++ horizon/test/customization/cust_test1.py | 12 ++++++++++++ horizon/test/customization/cust_test2.py | 12 ++++++++++++ horizon/test/test_dashboards/cats/dashboard.py | 12 ++++++++++++ horizon/test/test_dashboards/cats/kittens/panel.py | 12 ++++++++++++ horizon/test/test_dashboards/cats/tigers/panel.py | 12 ++++++++++++ horizon/test/test_dashboards/dogs/dashboard.py | 12 ++++++++++++ horizon/test/test_dashboards/dogs/puppies/panel.py | 12 ++++++++++++ horizon/utils/fields.py | 12 ++++++++++++ horizon/utils/functions.py | 12 ++++++++++++ horizon/utils/html.py | 12 ++++++++++++ horizon/workflows/__init__.py | 12 ++++++++++++ manage.py | 12 ++++++++++++ .../dashboards/admin/flavors/extras/tests.py | 12 ++++++++++++ .../dashboards/admin/flavors/tests.py | 12 ++++++++++++ .../dashboards/admin/groups/constants.py | 12 ++++++++++++ openstack_dashboard/dashboards/admin/info/tables.py | 12 ++++++++++++ .../dashboards/admin/projects/tables.py | 12 ++++++++++++ openstack_dashboard/dashboards/admin/users/tables.py | 12 ++++++++++++ .../dashboards/admin/volumes/panel.py | 12 ++++++++++++ .../dashboards/admin/volumes/tables.py | 12 ++++++++++++ openstack_dashboard/dashboards/admin/volumes/urls.py | 12 ++++++++++++ .../dashboards/project/firewalls/panel.py | 12 ++++++++++++ .../dashboards/project/images_and_snapshots/utils.py | 12 ++++++++++++ .../dashboards/project/loadbalancers/panel.py | 12 ++++++++++++ .../dashboards/project/loadbalancers/tests.py | 12 ++++++++++++ .../dashboards/project/routers/forms.py | 12 ++++++++++++ openstack_dashboard/dashboards/project/stacks/api.py | 12 ++++++++++++ openstack_dashboard/dashboards/project/stacks/sro.py | 12 ++++++++++++ .../dashboards/project/volumes/forms.py | 12 ++++++++++++ openstack_dashboard/test/settings.py | 12 ++++++++++++ openstack_dashboard/usage/base.py | 12 ++++++++++++ openstack_dashboard/usage/quotas.py | 12 ++++++++++++ openstack_dashboard/usage/tables.py | 12 ++++++++++++ openstack_dashboard/usage/views.py | 12 ++++++++++++ tox.ini | 3 +-- 42 files changed, 481 insertions(+), 4 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 2c84fb3c4e..e912ce739c 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# # Horizon documentation build configuration file, created by # sphinx-quickstart on Thu Oct 27 11:38:59 2011. # diff --git a/horizon/conf/__init__.py b/horizon/conf/__init__.py index 5c97dc3bcf..b9043df457 100644 --- a/horizon/conf/__init__.py +++ b/horizon/conf/__init__.py @@ -1,3 +1,15 @@ +# 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 copy from django.utils.functional import empty # noqa diff --git a/horizon/conf/default.py b/horizon/conf/default.py index 63ce6cf8e9..36d8f8a8b0 100644 --- a/horizon/conf/default.py +++ b/horizon/conf/default.py @@ -1,3 +1,15 @@ +# 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. + from django.conf import settings # noqa from django.utils.translation import ugettext_lazy as _ # noqa diff --git a/horizon/loaders.py b/horizon/loaders.py index 3d9dd6b636..71eaa9ce0d 100644 --- a/horizon/loaders.py +++ b/horizon/loaders.py @@ -1,3 +1,15 @@ +# 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. + """ Wrapper for loading templates from "templates" directories in panel modules. """ diff --git a/horizon/management/commands/startdash.py b/horizon/management/commands/startdash.py index f2d5c635cf..4ab18daa53 100644 --- a/horizon/management/commands/startdash.py +++ b/horizon/management/commands/startdash.py @@ -1,3 +1,15 @@ +# 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 glob from optparse import make_option # noqa import os diff --git a/horizon/management/commands/startpanel.py b/horizon/management/commands/startpanel.py index d6e11b3669..e724716d2a 100644 --- a/horizon/management/commands/startpanel.py +++ b/horizon/management/commands/startpanel.py @@ -1,3 +1,15 @@ +# 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 glob from optparse import make_option # noqa import os diff --git a/horizon/tabs/views.py b/horizon/tabs/views.py index 92b3b6cf46..b793bf65a1 100644 --- a/horizon/tabs/views.py +++ b/horizon/tabs/views.py @@ -1,3 +1,15 @@ +# 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. + from django import http from django.views import generic diff --git a/horizon/test/customization/cust_test1.py b/horizon/test/customization/cust_test1.py index 5a90227133..4f6dce8314 100644 --- a/horizon/test/customization/cust_test1.py +++ b/horizon/test/customization/cust_test1.py @@ -1,3 +1,15 @@ +# 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 horizon from horizon import base diff --git a/horizon/test/customization/cust_test2.py b/horizon/test/customization/cust_test2.py index 60493776a3..1323674937 100644 --- a/horizon/test/customization/cust_test2.py +++ b/horizon/test/customization/cust_test2.py @@ -1,3 +1,15 @@ +# 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 horizon from horizon import base diff --git a/horizon/test/test_dashboards/cats/dashboard.py b/horizon/test/test_dashboards/cats/dashboard.py index 73ed02b07f..aa8b007807 100644 --- a/horizon/test/test_dashboards/cats/dashboard.py +++ b/horizon/test/test_dashboards/cats/dashboard.py @@ -1,3 +1,15 @@ +# 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 horizon diff --git a/horizon/test/test_dashboards/cats/kittens/panel.py b/horizon/test/test_dashboards/cats/kittens/panel.py index b822447191..98b8a06404 100644 --- a/horizon/test/test_dashboards/cats/kittens/panel.py +++ b/horizon/test/test_dashboards/cats/kittens/panel.py @@ -1,3 +1,15 @@ +# 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 horizon from horizon.test.test_dashboards.cats import dashboard diff --git a/horizon/test/test_dashboards/cats/tigers/panel.py b/horizon/test/test_dashboards/cats/tigers/panel.py index 03c51d3ed0..b4b9c5b619 100644 --- a/horizon/test/test_dashboards/cats/tigers/panel.py +++ b/horizon/test/test_dashboards/cats/tigers/panel.py @@ -1,3 +1,15 @@ +# 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 horizon from horizon.test.test_dashboards.cats import dashboard diff --git a/horizon/test/test_dashboards/dogs/dashboard.py b/horizon/test/test_dashboards/dogs/dashboard.py index 0ba98126bf..49a193567d 100644 --- a/horizon/test/test_dashboards/dogs/dashboard.py +++ b/horizon/test/test_dashboards/dogs/dashboard.py @@ -1,3 +1,15 @@ +# 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 horizon diff --git a/horizon/test/test_dashboards/dogs/puppies/panel.py b/horizon/test/test_dashboards/dogs/puppies/panel.py index c791706314..27282f2af2 100644 --- a/horizon/test/test_dashboards/dogs/puppies/panel.py +++ b/horizon/test/test_dashboards/dogs/puppies/panel.py @@ -1,3 +1,15 @@ +# 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 horizon from horizon.test.test_dashboards.dogs import dashboard diff --git a/horizon/utils/fields.py b/horizon/utils/fields.py index 2486606750..bf06248c4d 100644 --- a/horizon/utils/fields.py +++ b/horizon/utils/fields.py @@ -1,3 +1,15 @@ +# 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. + from django.core.exceptions import ValidationError # noqa from django.forms import forms from django.forms import widgets diff --git a/horizon/utils/functions.py b/horizon/utils/functions.py index 1144d17e18..2af0228108 100644 --- a/horizon/utils/functions.py +++ b/horizon/utils/functions.py @@ -1,3 +1,15 @@ +# 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 math from django.utils.encoding import force_unicode # noqa diff --git a/horizon/utils/html.py b/horizon/utils/html.py index 3250ba9eda..d2c7effc88 100644 --- a/horizon/utils/html.py +++ b/horizon/utils/html.py @@ -1,3 +1,15 @@ +# 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 copy from django.forms.util import flatatt # noqa diff --git a/horizon/workflows/__init__.py b/horizon/workflows/__init__.py index 5c72562038..56860ceb54 100644 --- a/horizon/workflows/__init__.py +++ b/horizon/workflows/__init__.py @@ -1,3 +1,15 @@ +# 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. + from horizon.workflows.base import Action # noqa from horizon.workflows.base import MembershipAction # noqa from horizon.workflows.base import Step # noqa diff --git a/manage.py b/manage.py index fe16377abf..5818a6de38 100755 --- a/manage.py +++ b/manage.py @@ -1,5 +1,17 @@ #!/usr/bin/env python +# 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 os import sys diff --git a/openstack_dashboard/dashboards/admin/flavors/extras/tests.py b/openstack_dashboard/dashboards/admin/flavors/extras/tests.py index 10c91a198f..1d10f6d8c7 100644 --- a/openstack_dashboard/dashboards/admin/flavors/extras/tests.py +++ b/openstack_dashboard/dashboards/admin/flavors/extras/tests.py @@ -1,3 +1,15 @@ +# 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. + from django.core.urlresolvers import reverse # noqa from django import http diff --git a/openstack_dashboard/dashboards/admin/flavors/tests.py b/openstack_dashboard/dashboards/admin/flavors/tests.py index d57a714b86..9f7154065a 100644 --- a/openstack_dashboard/dashboards/admin/flavors/tests.py +++ b/openstack_dashboard/dashboards/admin/flavors/tests.py @@ -1,3 +1,15 @@ +# 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. + from django.core.urlresolvers import reverse # noqa from django import http from mox import IsA # noqa diff --git a/openstack_dashboard/dashboards/admin/groups/constants.py b/openstack_dashboard/dashboards/admin/groups/constants.py index db4adc507c..d8a6350546 100644 --- a/openstack_dashboard/dashboards/admin/groups/constants.py +++ b/openstack_dashboard/dashboards/admin/groups/constants.py @@ -1,3 +1,15 @@ +# 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. + GROUPS_INDEX_URL = 'horizon:admin:groups:index' GROUPS_INDEX_VIEW_TEMPLATE = 'admin/groups/index.html' GROUPS_CREATE_URL = 'horizon:admin:groups:create' diff --git a/openstack_dashboard/dashboards/admin/info/tables.py b/openstack_dashboard/dashboards/admin/info/tables.py index d4f3fe74e8..209a2464c8 100644 --- a/openstack_dashboard/dashboards/admin/info/tables.py +++ b/openstack_dashboard/dashboards/admin/info/tables.py @@ -1,3 +1,15 @@ +# 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. + from django import template from django.template import defaultfilters as filters from django.utils.translation import ugettext_lazy as _ # noqa diff --git a/openstack_dashboard/dashboards/admin/projects/tables.py b/openstack_dashboard/dashboards/admin/projects/tables.py index dd1471d543..77b8b79f2a 100644 --- a/openstack_dashboard/dashboards/admin/projects/tables.py +++ b/openstack_dashboard/dashboards/admin/projects/tables.py @@ -1,3 +1,15 @@ +# 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. + from django.core.urlresolvers import reverse # noqa from django.utils.http import urlencode # noqa from django.utils.translation import ugettext_lazy as _ # noqa diff --git a/openstack_dashboard/dashboards/admin/users/tables.py b/openstack_dashboard/dashboards/admin/users/tables.py index d47d68d22f..ab153d4d08 100644 --- a/openstack_dashboard/dashboards/admin/users/tables.py +++ b/openstack_dashboard/dashboards/admin/users/tables.py @@ -1,3 +1,15 @@ +# 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. + from django.template import defaultfilters from django.utils.translation import ugettext_lazy as _ # noqa diff --git a/openstack_dashboard/dashboards/admin/volumes/panel.py b/openstack_dashboard/dashboards/admin/volumes/panel.py index cd62aeb33b..71281f11c0 100644 --- a/openstack_dashboard/dashboards/admin/volumes/panel.py +++ b/openstack_dashboard/dashboards/admin/volumes/panel.py @@ -1,3 +1,15 @@ +# 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. + from django.utils.translation import ugettext_lazy as _ # noqa import horizon diff --git a/openstack_dashboard/dashboards/admin/volumes/tables.py b/openstack_dashboard/dashboards/admin/volumes/tables.py index 0dcee3fafb..8d32f4d365 100644 --- a/openstack_dashboard/dashboards/admin/volumes/tables.py +++ b/openstack_dashboard/dashboards/admin/volumes/tables.py @@ -1,3 +1,15 @@ +# 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. + from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tables diff --git a/openstack_dashboard/dashboards/admin/volumes/urls.py b/openstack_dashboard/dashboards/admin/volumes/urls.py index bfe9c8c88e..82e5953c56 100644 --- a/openstack_dashboard/dashboards/admin/volumes/urls.py +++ b/openstack_dashboard/dashboards/admin/volumes/urls.py @@ -1,3 +1,15 @@ +# 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. + from django.conf.urls import patterns # noqa from django.conf.urls import url # noqa diff --git a/openstack_dashboard/dashboards/project/firewalls/panel.py b/openstack_dashboard/dashboards/project/firewalls/panel.py index a611aa9bbe..011cd587ff 100644 --- a/openstack_dashboard/dashboards/project/firewalls/panel.py +++ b/openstack_dashboard/dashboards/project/firewalls/panel.py @@ -1,3 +1,15 @@ +# 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. + from django.conf import settings # noqa from django.utils.translation import ugettext_lazy as _ # noqa diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/utils.py b/openstack_dashboard/dashboards/project/images_and_snapshots/utils.py index 261bae93ea..3d454e822d 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/utils.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/utils.py @@ -1,3 +1,15 @@ +# 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. + from django.utils.translation import ugettext_lazy as _ # noqa from horizon import exceptions diff --git a/openstack_dashboard/dashboards/project/loadbalancers/panel.py b/openstack_dashboard/dashboards/project/loadbalancers/panel.py index 28f7ce960f..3077da82f7 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/panel.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/panel.py @@ -1,3 +1,15 @@ +# 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. + from django.conf import settings # noqa from django.utils.translation import ugettext_lazy as _ # noqa diff --git a/openstack_dashboard/dashboards/project/loadbalancers/tests.py b/openstack_dashboard/dashboards/project/loadbalancers/tests.py index 37b456310d..aaf03900f7 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/tests.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/tests.py @@ -1,5 +1,17 @@ # vim: tabstop=4 shiftwidth=4 softtabstop=4 +# 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. + from mox import IsA # noqa from django.core.urlresolvers import reverse # noqa diff --git a/openstack_dashboard/dashboards/project/routers/forms.py b/openstack_dashboard/dashboards/project/routers/forms.py index fe6e18770a..6f7fd4aef3 100644 --- a/openstack_dashboard/dashboards/project/routers/forms.py +++ b/openstack_dashboard/dashboards/project/routers/forms.py @@ -3,6 +3,18 @@ # Copyright 2012, Nachi Ueno, NTT MCL, Inc. # 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. + """ Views for managing Neutron Routers. """ diff --git a/openstack_dashboard/dashboards/project/stacks/api.py b/openstack_dashboard/dashboards/project/stacks/api.py index c28b1c35f7..e16cd2a7de 100644 --- a/openstack_dashboard/dashboards/project/stacks/api.py +++ b/openstack_dashboard/dashboards/project/stacks/api.py @@ -1,3 +1,15 @@ +# 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 json from openstack_dashboard.api import heat diff --git a/openstack_dashboard/dashboards/project/stacks/sro.py b/openstack_dashboard/dashboards/project/stacks/sro.py index ac8a5f6eca..cc1c4c937a 100644 --- a/openstack_dashboard/dashboards/project/stacks/sro.py +++ b/openstack_dashboard/dashboards/project/stacks/sro.py @@ -1,3 +1,15 @@ +# 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. + from django.template.defaultfilters import title # noqa from django.template.loader import render_to_string # noqa diff --git a/openstack_dashboard/dashboards/project/volumes/forms.py b/openstack_dashboard/dashboards/project/volumes/forms.py index ee9184b657..3d82317968 100644 --- a/openstack_dashboard/dashboards/project/volumes/forms.py +++ b/openstack_dashboard/dashboards/project/volumes/forms.py @@ -3,6 +3,18 @@ # Copyright 2012 Nebula, Inc. # 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. + """ Views for managing volumes. """ diff --git a/openstack_dashboard/test/settings.py b/openstack_dashboard/test/settings.py index 85f470dafb..7f4b214c72 100644 --- a/openstack_dashboard/test/settings.py +++ b/openstack_dashboard/test/settings.py @@ -1,3 +1,15 @@ +# 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 os from horizon.test.settings import * # noqa diff --git a/openstack_dashboard/usage/base.py b/openstack_dashboard/usage/base.py index cb838839d7..a697b34f6d 100644 --- a/openstack_dashboard/usage/base.py +++ b/openstack_dashboard/usage/base.py @@ -1,3 +1,15 @@ +# 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. + from __future__ import division from csv import DictWriter # noqa diff --git a/openstack_dashboard/usage/quotas.py b/openstack_dashboard/usage/quotas.py index de80c4438e..6b4e9202ab 100644 --- a/openstack_dashboard/usage/quotas.py +++ b/openstack_dashboard/usage/quotas.py @@ -1,3 +1,15 @@ +# 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. + from collections import defaultdict # noqa import itertools import logging diff --git a/openstack_dashboard/usage/tables.py b/openstack_dashboard/usage/tables.py index 8d41a6d33a..7dbcbdd3e2 100644 --- a/openstack_dashboard/usage/tables.py +++ b/openstack_dashboard/usage/tables.py @@ -1,3 +1,15 @@ +# 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. + from django.core import urlresolvers from django.template.defaultfilters import floatformat # noqa from django.template.defaultfilters import timesince # noqa diff --git a/openstack_dashboard/usage/views.py b/openstack_dashboard/usage/views.py index 51c29028fe..40e566f108 100644 --- a/openstack_dashboard/usage/views.py +++ b/openstack_dashboard/usage/views.py @@ -1,3 +1,15 @@ +# 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. + from horizon import tables from openstack_dashboard import api from openstack_dashboard.usage import base diff --git a/tox.ini b/tox.ini index f90d063ac4..27413e26df 100644 --- a/tox.ini +++ b/tox.ini @@ -34,9 +34,8 @@ builtins = _ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py # E127 continuation line over-indented for visual indent # E128 continuation line under-indented for visual indent -# H102 Apache 2.0 license header not found # H4xx docstrings # H701 empty localization string # H702 Formatting operation should be outside of localization method call # H803 git commit title should not end with period (disabled on purpose, see bug #1236621) -ignore = E127,E128,H102,H4,H701,H702,H803 +ignore = E127,E128,H4,H701,H702,H803