After installing it, when you run tests with the option: py.test --flake8 every file ending in .py will be discovered and checked with flake8.