Update pep8 requirements

Change-Id: Iba4503a329f65641f7521f67aa11b3ac5fda8da1
diff --git a/tox.ini b/tox.ini
index 032d6b7..fe7130f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -16,9 +16,9 @@
 
 [testenv:pep8]
 deps =
-    hacking>=3.1.0,<4.0.0 # Apache-2.0
+    hacking>=4.1.0,<5.0.0 # Apache-2.0
     flake8-import-order>=0.17.1 # LGPLv3
-    pycodestyle>=2.0.0,<2.7.0 # MIT
+    pycodestyle>=2.0.0,<3.0.0 # MIT
 commands = flake8 {posargs}
 
 [testenv:venv]