summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2020-04-03 10:53:34 +0200
committerAndreas Jaeger <aj@suse.com>2020-04-03 21:21:07 +0200
commit96b56519bf5756022d495aedc0033cd44e0e3267 (patch)
tree243a21209a65fafb7e3402f35281b6bf049e7a18 /tox.ini
parentb4b0ebd4aa0a710af288a69ae787e10420fdeb1a (diff)
downloadswift-96b56519bf5756022d495aedc0033cd44e0e3267.tar.gz
Update hacking for Python3
The repo is Python using both Python 2 and 3 now, so update hacking to version 2.0 which supports Python 2 and 3. Note that latest hacking release 3.0 only supports version 3. Fix problems found. Remove hacking and friends from lower-constraints, they are not needed for installation. Change-Id: I9bd913ee1b32ba1566c420973723296766d1812f
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 9 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index ed056c1e1..c5d554475 100644
--- a/tox.ini
+++ b/tox.ini
@@ -127,7 +127,15 @@ commands = bandit -c bandit.yaml -r swift -n 5
# H404: multi line docstring should start without a leading new line
# H405: multi line docstring summary not separated with an empty line
# H501: Do not use self.__dict__ for string formatting
-ignore = H101,H202,H301,H306,H404,H405,H501
+# Disabled with going to hacking 2.0, needs further investigation and
+# changes to enable:
+# E305 expected 2 blank lines after class or function definition, found 1
+# E402: module level import not at top of file
+# E731 do not assign a lambda expression, use a def
+# Swift team needs to decide if they want to enable either of these:
+# W503: line break before binary operator
+# W504: line break after binary operator
+ignore = H101,H202,H301,H306,H404,H405,H501,W503,W504,E305,E402,E731
exclude = .venv,.tox,dist,*egg
filename = *.py,bin/*
show-source = True