From 9f659443847e8e2cebdaf888fbc832966a9e64e7 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Sat, 2 Apr 2016 20:59:24 -0400 Subject: [PATCH] Fix flake8 with minimal changes Just ignore a bunch of things now. We can fix these later as a big bunch of these are in generated code. --- k8sclient/client/__init__.py | 12 ++++++++++++ k8sclient/client/models/__init__.py | 12 ++++++++++++ tox.ini | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/k8sclient/client/__init__.py b/k8sclient/client/__init__.py index 8da2442..aa48158 100644 --- a/k8sclient/client/__init__.py +++ b/k8sclient/client/__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 __future__ import absolute_import # import models into sdk package diff --git a/k8sclient/client/models/__init__.py b/k8sclient/client/models/__init__.py index 92c73eb..c5bac0b 100644 --- a/k8sclient/client/models/__init__.py +++ b/k8sclient/client/models/__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 __future__ import absolute_import # import models into model package diff --git a/tox.ini b/tox.ini index d4cd6e3..693ff72 100644 --- a/tox.ini +++ b/tox.ini @@ -55,6 +55,6 @@ commands = oslo_debug_helper {posargs} # E123, E125 skipped as they are invalid PEP-8. show-source = True -ignore = E123,E125 +ignore = E123,E125,E303,E501,F401,H234,H304,H306,H404,H405,W292,W293 builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build