Pre-commit: precommit-yaml : accept multi-document yaml file

Created on 13 Oct 2017  路  3Comments  路  Source: pre-commit/pre-commit

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

Most helpful comment

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!

All 3 comments

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!

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!

thanks a lot

Was this page helpful?
0 / 5 - 0 ratings

Related issues

max-sixty picture max-sixty  路  3Comments

metmajer picture metmajer  路  4Comments

DaveParr picture DaveParr  路  4Comments

hectorv picture hectorv  路  3Comments

tamuhey picture tamuhey  路  3Comments