From fd5a13bc6a7a4a25c3305020f1dbde0c2d510347 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 27 Mar 2020 19:05:04 +0100 Subject: [PATCH] Update hacking for Python3 The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Blacklist: - W504 line break after binary operator - /oslo_cache/__init__.py:17:1: F405 'get_memoization_decorator' may be undefined, or defined from star imports: oslo_cache.core Change-Id: I05bcd79e2af259df7642bf759e0e5007c2b1a34c --- test-requirements.txt | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 98c68238..e44e920e 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,7 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking>=1.1.0,<1.2.0 # Apache-2.0 +hacking>=3.0,<3.1.0 # Apache-2.0 mock>=2.0.0 # BSD oslotest>=3.2.0 # Apache-2.0 pifpaf>=0.10.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 0143d47b..5379f0e0 100644 --- a/tox.ini +++ b/tox.ini @@ -50,7 +50,7 @@ commands = [flake8] show-source = True -ignore = H405 +ignore = H405,W504,F405 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build