This is a partial revert of be77ed3a81. It
turns out many of the ruff rules - particularly the pycodestyle "E"
rules - are only enabled in preview mode [1]. We don't normally see this
since 'ruff format' makes these rules unnecessary. Re-enable flake8
until we decide to enable 'ruff format' (if we decide to enable it).
We run `autopep8` to fix the errors that have been introduced since that
commit and follow-up with manual fixups to get us back on the straight
and narrow.
[1] https://docs.astral.sh/ruff/rules/#error-e
Change-Id: If203af5bad388307e828d1190cfc08d335bc36a1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>