From 6882b4232f0b80bcab62656abc444b53c9df5f4a Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 29 Mar 2020 15:43:55 +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: I55462940a883caac05e9d1cfc804bd9ea1b1b42c --- test-requirements.txt | 2 +- tox.ini | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index f0ccb37..a9c39d5 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,7 +3,7 @@ # process, which may cause wedges in the gate later. # Hacking should appear first in case something else depends on pep8 -hacking>=1.1.0 # Apache-2.0 +hacking>=3.0,<3.1.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 flake8-import-order==0.13 # LGPLv3 diff --git a/tox.ini b/tox.ini index 80acc0c..7e79cc9 100644 --- a/tox.ini +++ b/tox.ini @@ -80,8 +80,9 @@ max-complexity = 20 import-order-style = pep8 application-import-names = neutron_fwaas_dashboard -[hacking] -local-check-factory = horizon.hacking.checks.factory +[flake8:local-plugins] +extension = + M322 = horizon.hacking.checks:no_mutable_default_args [testenv:lower-constraints] deps =