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

Add a mode that exits nonzero for format violations instead of fixing #279

Open
jamesliu4c opened this issue Apr 17, 2024 · 3 comments
Open

Comments

@jamesliu4c
Copy link

Description

I'd like to have a CI check that yamlfix has been run by the dev. A lot of the rest of my CI infrastructure expects a nonzero exit code, like black --check.

Possible Solution

I read the docs, and this does not seem like an option. If it is a doc fix, that should be easy enough. Otherwise, i can probably make a PR for this as well.

Additional context

Related Issue

@magnuslarsen
Copy link

@qerub
Copy link

qerub commented May 10, 2024

Nice! I think me and @jamesliu4c missed this because there's no mention of this functionality on https://lyz-code.github.io/yamlfix/.

@jamesliu4c
Copy link
Author

Oh, nice. Thanks! Will you accept a PR to add it to the docs?

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