Add a hook for yaml files.