diff --git a/kgb/agency.py b/kgb/agency.py
index 8fd80673e34ac6f02ecd31cd61d277039443eab2..9ecbbcdc7e25bf5e8e1f0fb69defe8eab16ea980 100644
--- a/kgb/agency.py
+++ b/kgb/agency.py
@@ -5,7 +5,6 @@ from __future__ import unicode_literals
 from pprint import pformat
 from unittest.util import safe_repr
 
-from kgb.pycompat import iteritems
 from kgb.signature import _UNSET_ARG
 from kgb.spies import FunctionSpy, SpyCall
 from kgb.utils import format_spy_kwargs
diff --git a/kgb/tests/test_function_spy.py b/kgb/tests/test_function_spy.py
index 2a006026111d57a82d8bb685787d8af606acf6be..49eee195081acdff6ba21d56fe92edd5809947d5 100644
--- a/kgb/tests/test_function_spy.py
+++ b/kgb/tests/test_function_spy.py
@@ -738,7 +738,9 @@ class FunctionSpyTests(TestCase):
         })
 
     def test_call_with_original_false_and_kwargs(self):
-        """Testing FunctionSpy calls with call_original=False and keyword arguments"""
+        """Testing FunctionSpy calls with call_original=False and keyword
+        arguments
+        """
         obj = MathClass()
 
         self.agency.spy_on(obj.do_math, call_original=False)
@@ -841,7 +843,8 @@ class FunctionSpyTests(TestCase):
         })
 
     def test_call_with_original_true_and_bound_method(self):
-        """Testing FunctionSpy calls with call_original=True and bound method"""
+        """Testing FunctionSpy calls with call_original=True and bound method
+        """
         obj = MathClass()
 
         self.agency.spy_on(obj.do_math, call_original=True)
diff --git a/setup.cfg b/setup.cfg
index 33e915527ad2c4212139ea85c54932ca16409abb..7be36f7b340fdb78630f0034af15bf009bea6930 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -4,6 +4,9 @@ universal = 1
 [egg_info]
 tag_build = .dev
 
+[flake8]
+ignore = E121,E125,E129,E241,W504
+
 [aliases]
 release = egg_info -DRb ''
 
