Add regression test for get_current_git_branch
Add flake8 configuration