From 95aa3e96f25137d5e6716d0a4572b8885b0cd11a Mon Sep 17 00:00:00 2001
From: John Dickinson <me@not.mn>
Date: Fri, 24 Jan 2014 14:53:17 -0800
Subject: [PATCH] match hacking rules in swift

Change-Id: Iee02978f38ca020754f52ceaed6aa3684fa87bc9
---
 swiftclient/command_helpers.py | 13 +++++++++++++
 tox.ini                        |  7 +++++++
 2 files changed, 20 insertions(+)

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