From e2fd9f4dcf78c152196cdfae987a2a2b2833b6dc Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 30 Mar 2020 18:10:49 +0200 Subject: [PATCH] Update hacking for Python3 The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found. Update local hacking checks for new flake8. Change-Id: I3bab2affeba9f1cb298f3b13bec7a70ab7245b1d --- test-requirements.txt | 2 +- tox.ini | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 9cffbb1..c572e69 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,7 +2,7 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 +hacking>=3.0,<3.1.0 # Apache-2.0 bandit>=1.1.0 # Apache-2.0 bashate>=0.5.1 # Apache-2.0 diff --git a/tox.ini b/tox.ini index b19efc2..32d0d45 100644 --- a/tox.ini +++ b/tox.ini @@ -92,7 +92,8 @@ enable-extensions=H904,H106,H203,H204,H205 # [E402] Module level import not at top of file # [E731] Do not assign a lambda expression, use a def # [W503] Line break occurred before a binary operator -ignore=E123,E226,E402,E731,W503 +# [W504] line break after binary operator +ignore=E123,E226,E402,E731,W503,W504 [testenv:lower-constraints] deps =