Revert "Revert "test hook(flake8)""

This reverts commit d98fbb967d9250b39498dd529186cf110302cba3.