Trigger: fix flake8 configuration
To enable a disabled flake8 extension (e.g. ALT900) one has to use --extend-extensions not --extend-select. This meant that these checks were never running. Also fix the resulting warnings.
Relates to ATR-28970.
Edited by Frank Winklmeier