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

Option for explicit start and explicit end #18

Open
Andrew-Sheridan opened this issue Jul 26, 2020 · 3 comments
Open

Option for explicit start and explicit end #18

Andrew-Sheridan opened this issue Jul 26, 2020 · 3 comments

Comments

@Andrew-Sheridan
Copy link

Hi there! really appreciate this package and its authors :)

I'm curious if it would be possible to add an option for explicit start and explicit end?

Here explicit start is currently hardcoded:

Thanks for your time

@dudicoco
Copy link
Contributor

dudicoco commented Oct 1, 2020

I've added support to remove explicit start, released in 0.1.0.

- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
  rev: 0.1.0
  hooks:
  - id: yamlfmt
    args:
    - --implicit_start

@archoversight
Copy link
Contributor

Would there be any appetite to adding an explicit end?

@archoversight
Copy link
Contributor

@Andrew-Sheridan take a look at my PR: #21

You may use this right now with:

- repo: https://github.com/archoversight/pre-commit-hook-yamlfmt.git
  rev: 0.1.0-explicit
  hooks:
  - id: yamlfmt
    args: [--explicit_end, --explicit_start]

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

No branches or pull requests

3 participants