From 1456d8b6f9f86d974459685091f143f0a0b4b345 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 1 Apr 2020 19:47:23 +0200 Subject: Update hacking for Python3 The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found by updated hacking version. Update local hacking checks for new flake8. Remove hacking and friends from lower-constraints, they are not needed in installations. Change-Id: I67e5ca24c550163c218fb06692de0b7c528d8318 --- tox.ini | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 09b93e82a..d94bd279e 100644 --- a/tox.ini +++ b/tox.ini @@ -192,8 +192,12 @@ show-source = True enable-extensions = H203,H106 exclude=.eggs,.git,.tox,doc -[hacking] -local-check-factory = kolla.hacking.checks.factory +[flake8:local-plugins] +extension = + D703 = checks:check_explicit_underscore_import + K301 = checks:no_mutable_default_args + K302 = checks:no_log_warn +paths = ./kolla/hacking [testenv:lower-constraints] deps = -- cgit v1.2.3