Skip to content

Fix code to comply with stricter code styleguides

Johannes Zumthurm requested to merge cleanup into master

Created by: cburchert

I locally use a stricter version of flake8. I fixed all the errors I get, which are not covered in the projects flake8 settings.

The three commits include:

  1. import ordering by Google Styleguide (https://google.github.io/styleguide/pyguide.html#Imports_formatting).
  • Imports are in three groups: stdlib, external and internal
  • no relative imports
  • imports alphabetically (case insensitive)
  1. Variables may not shadow builtins

  2. Various errors which somehow slipped earlier, mostly wrong intendation.

Merge request reports

Loading