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

Patch pre-commit-hook to work with GHCIDE/hls-plugin-api codes #1418

Merged
merged 5 commits into from Feb 22, 2021

Conversation

Ailrun
Copy link
Member

@Ailrun Ailrun commented Feb 21, 2021

Fixes #1416

  1. Somehow pre-commit does not load stylish-haskell configuration in subdirectories.
    As a temporary workaround, this PR unifies all .stylish-haskell.yaml into a single top-level config.
  2. The excludes field for pre-commit-hook.nix is a regex, not a grep. Moreover, file paths that pre-commit passes do not start with an initial / even when a file is at the root directory of the project.
    This PR fixes the value for the field.

pre-commit does not load stylish-haskell configuration in
subdirectories. As an imperfect workaround, this commit unifies
all stylish-haskell into a single top-level config.
@Ailrun Ailrun changed the title Patch pre-commit-hook to work with GHCIDE codes Patch pre-commit-hook to work with GHCIDE/hls-plugin-api codes Feb 21, 2021
Copy link
Collaborator

@pepeiborra pepeiborra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@Ailrun Ailrun added the merge me Label to trigger pull request merge label Feb 21, 2021
@mergify mergify bot merged commit 9d21805 into haskell:master Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pre-commit hook fails with parse error
2 participants