yaml_lint action clutters PRs with comments: replace it with pre-commit and a prettier
hook
#805
Labels
Task
Actions that don't involve changing our code or docs.
We use the https://github.com/karancode/yamllint-github-action, which can be found to comment on PRs.
This is a terrible practice in my mind, and seems to be the default behavior for the action, even though its documented to not be so. Perhaps there a bug that makes the comment happens no matter what?
I suggest this action is dropped in favor of using a pre-commit hook with prettier, that auto-formats the YAML instead of just lints it. I've loved it in z2jh and other projects with big YAML files.
I've just verified also that with prettier, we would catch duplicate keys with a clear error message if they are detected.
To close this
Anything that makes us replace the yaml-lint action is sufficient, this task does not represent adding black and other hooks.
If pre-commit.ci is to be used, the 2i2c.org should configure the pre-commit.ci application at https://github.com/organizations/2i2c-org/settings/installations to enable it for this repo.
The text was updated successfully, but these errors were encountered: