Pass all edited files to flake8

It was previously only passing the first edited file to flake8.