Skip to content

Commit 8dbeae1

Browse files
authored
Update formatting hooks to not include Wingman (#1622)
1 parent d2dc559 commit 8dbeae1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If you don't want to use [nix](https://nixos.org/guides/install-nix.html), you c
1818
"hooks": [
1919
{
2020
"entry": "stylish-haskell --inplace",
21-
"exclude": "(^Setup.hs$|test/testdata/.*$|test/data/.*$|^hie-compat/.*$)",
21+
"exclude": "(^Setup.hs$|test/testdata/.*$|test/data/.*$|^hie-compat/.*$|^plugins/hls-tactics-plugin/.*$)",
2222
"files": "\\.l?hs$",
2323
"id": "stylish-haskell",
2424
"language": "system",
@@ -35,6 +35,12 @@ If you don't want to use [nix](https://nixos.org/guides/install-nix.html), you c
3535
}
3636
```
3737

38+
### Why they are excluded?
39+
40+
- `test/testdata` and `test/data` are there as we want to test formatting plugins.
41+
- `hie-compat` is there as we want to keep its code as close to GHC as possible.
42+
- `hls-tactics-plugin` is there as the main contributor of the plugin (@isovector) does not want auto-formatting.
43+
3844
## Testing
3945

4046
The tests make use of the [Tasty](https://github.com/feuerbach/tasty) test framework.

nix/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ in (import sources.nixpkgs
8080
# default_stages = ["manual" "push"];
8181
hooks = {
8282
stylish-haskell.enable = true;
83-
stylish-haskell.excludes = [ "^Setup.hs$" "test/testdata/.*$" "test/data/.*$" "^hie-compat/.*$" ];
83+
stylish-haskell.excludes = [ "^Setup.hs$" "test/testdata/.*$" "test/data/.*$" "^hie-compat/.*$" "^plugins/hls-tactics-plugin/.*$" ];
8484
};
8585
};
8686
}

0 commit comments

Comments
 (0)