def check(self, diff):
        """Check that the new file introduced is a python source file"""
        path = diff.b_path
        assert any(
            path.endswith(ext)
            for ext in importlib.machinery.SOURCE_SUFFIXES
        )