diff --git a/swiftclient/command_helpers.py b/swiftclient/command_helpers.py index 4e9c6643..0c81cb6e 100644 --- a/swiftclient/command_helpers.py +++ b/swiftclient/command_helpers.py @@ -1,3 +1,16 @@ +# 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 swiftclient.utils import prt_bytes diff --git a/tox.ini b/tox.ini index b1837605..83c076cd 100644 --- a/tox.ini +++ b/tox.ini @@ -30,6 +30,13 @@ commands = python setup.py testr --coverage downloadcache = ~/cache/pip [flake8] +# it's not a bug that we aren't using all of hacking +# H102 -> apache2 license exists +# H103 -> license is apache +# H201 -> no bare excepts +# H501 -> don't use locals() for str formatting +# H903 -> \n not \r\n ignore = H +select = H102, H103, H201, H501, H903 show-source = True exclude = .venv,.tox,dist,doc,test,*egg