Backport commit a2ac5efaa64f57fbbe059066c6c4636dfd0715c2, 'swift
constraints are now settable via config', excluding PEP8 changes that
did not involve the constraints.

Change-Id: Idcc2c66b8249b5cce6ec5f7130d69d590e622d10