-
Notifications
You must be signed in to change notification settings - Fork 40
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
Enforce Prettier formatting? #1313
Comments
This comment was marked as outdated.
This comment was marked as outdated.
I think this was the issue:
So
EDIT and add yamllint instead |
Well, so its more editor configuration issue perhaps but sill worth addressing so that its the same for everyone. I guess I'm not alone to use vscode |
I think we should have prettier in the pre-commit hooks, right? At the same time we should remove it from the other GitHub Actions workflow, so that we do prettier formatting in one single place: in the pre-commit hooks. I can probably take care of that. I do not use vscode, so I will likely not be the one to take care of that part. |
Always good to keep a sanity check on the CI (EDIT: the CI doesn't actually do the formatting; it just checks if it's formatted), as pre-commit hooks are easily bypassed. |
Personally, I prefer format-on-save in the editor instead of commit hooks, as commit hooks can slow down committing and negatively affect DX. But I admit they're convenient in a project like this where not everyone will have their editor configured to format-on-save. |
Yes, sorry, I was being unclear, we already have a GitHub Actions workflow job somewhere that does
So my plan is:
Installing and running pre-commit hooks locally should not be mandatory, because we run them in a GitHub Actions workflow anyway. |
Sounds perfect ! |
I now realize that while the I will keep investigating, there are a bunch of things I would like to improve in the GitHub Actions workflows anyway... But if I understood correctly the issue was in the IDE settings, right? There isn't anything that needs immediate attention, is there? |
Yeah, there is nothing urgent :) Thanks for having a look ! |
As noted here: #1312 (comment)
There is a conflict between yamllint and prettier. Somehow this conflict has not appeared in the GitHub checks.
There is no prettier in the pre-commit hooks. But there is prettier in some GitHub Actions workflow.
Should be investigated how come the conflict did not appear. Is the prettier formatting really checked in the GitHub Actions workflow? What is going on?
The text was updated successfully, but these errors were encountered: