summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Dickinson <me@not.mn>2014-01-24 14:53:17 -0800
committerJohn Dickinson <me@not.mn>2014-01-24 14:53:17 -0800
commit95aa3e96f25137d5e6716d0a4572b8885b0cd11a (patch)
treedf3f33188c0cc8b39c2e65d383ee8369473d298e
parentb4907e0c816585d9b20a4119b00ee56adb884119 (diff)
downloadpython-swiftclient-95aa3e96f25137d5e6716d0a4572b8885b0cd11a.tar.gz
match hacking rules in swift
Change-Id: Iee02978f38ca020754f52ceaed6aa3684fa87bc9
-rw-r--r--swiftclient/command_helpers.py13
-rw-r--r--tox.ini7
2 files changed, 20 insertions, 0 deletions
diff --git a/swiftclient/command_helpers.py b/swiftclient/command_helpers.py
index 4e9c664..0c81cb6 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 b183760..83c076c 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