Run flake8 as part of the test suite

This change codifies the usage of the `flake8` command in our test suite.