summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2020-04-01 20:42:52 +0200
committerAndreas Jaeger <aj@suse.com>2020-04-03 21:51:00 +0200
commitf33c2130511f09a6014f45c12345aa158ab9fb6d (patch)
tree763aa280183b4bd27b99375d7000c5751afa9b4b /tox.ini
parent3cdcfac30b603ad4461bbcdde1b4cbcf3aadf49e (diff)
downloadtrove-f33c2130511f09a6014f45c12345aa158ab9fb6d.tar.gz
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: I6e6638c07b5d24c90e9deae277e98149f383eb3d
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 8 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 9971f08c..f8082055 100644
--- a/tox.ini
+++ b/tox.ini
@@ -65,7 +65,14 @@ filename=*.py,trove-*,app.wsgi
[hacking]
import_exceptions = trove.common.i18n
-local-check-factory = trove.hacking.checks.factory
+
+[flake8:local-plugins]
+extension =
+ T103= checks:check_raised_localized_exceptions
+ T104 = checks:check_no_basestring
+ T105 = checks:no_translate_logs
+ N335 = checks:assert_raises_regexp
+paths = ./trove/hacking
[testenv:api-ref]
# This environment is called from CI scripts to test and publish