Add C901 to .flake8: cyclomatic complexity to high

6 jobs for pre-push-hook in 3 minutes and 43 seconds (queued for 1 second)