Skip to content

static code analysis: make it pass flake8 3.5.0

Oliver Smith requested to merge fix/flake8-update into master

This commit adds two new ignores to the flake8 call:

  • W504 line break after binary operator
  • W605 invalid escape sequence 'x'

Without these, newer flake8 versions, such as the one shipped by Arch Linux, don't run through on the code base (which leads to not running it at all locally, only in CI).

Additional changes:

  • Don't give the exception instance of subprocess.CalledProcessError a name, so it does not trigger F841
  • Dont' advise to run "autopep8" anymore, because that will likely touch unrelated code.

For reference, here is the list of error codes: https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes

Merge request reports