Skip to content

Commit 09e45f2

Browse files
authored
Merge pull request #669 from cachix/drop-purty
purty: drop the purty hook
2 parents 46600f3 + f0e01ff commit 09e45f2

File tree

5 files changed

+7
-18
lines changed

5 files changed

+7
-18
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ use nix
415415
### Purescript
416416

417417
- [purs-tidy](https://github.com/natefaubion/purescript-tidy)
418-
- [purty](https://gitlab.com/joneshf/purty)
419418

420419
### Python
421420

modules/hooks.nix

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3773,14 +3773,6 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
37733773
entry = "${hooks.purs-tidy.package}/bin/purs-tidy format-in-place";
37743774
files = "\\.purs$";
37753775
};
3776-
purty =
3777-
{
3778-
name = "purty";
3779-
description = "Format purescript files.";
3780-
package = tools.purty;
3781-
entry = "${hooks.purty.package}/bin/purty";
3782-
files = "\\.purs$";
3783-
};
37843776
pylint =
37853777
{
37863778
name = "pylint";

modules/pre-commit.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,13 @@ in
431431
};
432432

433433
config = lib.mkIf cfg.enable {
434+
# Hook removal notices should be defined here
435+
assertions = [
436+
{
437+
assertion = !(cfg.hooks ? purty);
438+
message = "The `purty` hook has been removed because the project is unmaintained. Consider using `purs-tidy` instead.";
439+
}
440+
];
434441

435442
rawConfig =
436443
{

nix/purty/default.nix

Lines changed: 0 additions & 8 deletions
This file was deleted.

nix/tools.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ in
232232
cabal2nix-dir = callPackage ./cabal2nix-dir { };
233233
hpack-dir = callPackage ./hpack-dir { };
234234
hunspell = callPackage ./hunspell { };
235-
purty = callPackage ./purty { purty = nodePackages.purty; };
236235
terraform-validate = callPackage ./terraform-validate { };
237236
tflint = callPackage ./tflint { };
238237
dune-build-opam-files = callPackage ./dune-build-opam-files {

0 commit comments

Comments
 (0)