Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

precommit-yaml : accept multi-document yaml file #635

Closed
geekobi opened this issue Oct 12, 2017 · 3 comments
Closed

precommit-yaml : accept multi-document yaml file #635

geekobi opened this issue Oct 12, 2017 · 3 comments

Comments

@geekobi
Copy link

geekobi commented Oct 12, 2017

Hi,
I use a tool which uses a multi-document yaml file as configuration file. It doesn't accept several "mono-document" yaml files instead.
So, to use pre-commit, I disabled the yaml check and I would like to re-enable it.
Regards

@asottile
Copy link
Member

Hi @geekobi, first thanks for the issue!

I think the specific hook you're referring to is check-yaml which is located here -- I'd suggest opening an issue there!

@asottile
Copy link
Member

This is now available in the v1.1.0 release of pre-commit-hooks

To use this, upgrade to sha: v1.1.0 and use the following configuration for check-yaml:

    -   id: check-yaml
        args: [--allow-multiple-documents]

Thanks again for the issue!

@geekobi
Copy link
Author

geekobi commented Oct 13, 2017

thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants