chore: fix flake8 warnings

Tested-by: Marge <!2178>
Part-of: <!2178>
11 jobs for !2178 with pre_commit_flake8 in 14 minutes and 42 seconds (queued for 2 seconds)
latest merge request