Skip to content

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