-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
Correct issues with pre-commit hook #2597
Conversation
'stylish-haskell' seems to always fail with a parse error on several files under ghcide/. Excluding these files from the pre-commit hook ensures that this hook can always succeed.
Hi, thanks for fixing the precommit hook. This include the formatting of some files inside ghcide and i am not sure if it is on purpose. |
Yes, 800c165 was on purpose. My goal was to ensure that the pre-commit hook would be a no-op for freshly pulled code — only modified code would be reformatted. |
I am ok with the reformat code and there is no pr touching them now afaics, but would like to know @pepeiborra thoughts |
What were the issues with the hook? |
Thanks! Could you also update the Nix version of the hook with the newly excluded files? haskell-language-server/flake.nix Lines 171 to 175 in ff0ccd6
|
Done! (I don’t use Nix regularly, so didn’t even notice there was a Nix version…) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too. Could you resolve the conflict?
This is basically the same as 800c165, but applied to new changes which have been added since then.
Following the Contributing guidelines, I added the specified pre-commit hook when I cloned HLS. However testing it revealed several issues, which are fixed in this PR.