Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ use nix
### Purescript

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

### Python

Expand Down
8 changes: 0 additions & 8 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3773,14 +3773,6 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
entry = "${hooks.purs-tidy.package}/bin/purs-tidy format-in-place";
files = "\\.purs$";
};
purty =
{
name = "purty";
description = "Format purescript files.";
package = tools.purty;
entry = "${hooks.purty.package}/bin/purty";
files = "\\.purs$";
};
pylint =
{
name = "pylint";
Expand Down
7 changes: 7 additions & 0 deletions modules/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,13 @@ in
};

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

rawConfig =
{
Expand Down
8 changes: 0 additions & 8 deletions nix/purty/default.nix

This file was deleted.

1 change: 0 additions & 1 deletion nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ in
cabal2nix-dir = callPackage ./cabal2nix-dir { };
hpack-dir = callPackage ./hpack-dir { };
hunspell = callPackage ./hunspell { };
purty = callPackage ./purty { purty = nodePackages.purty; };
terraform-validate = callPackage ./terraform-validate { };
tflint = callPackage ./tflint { };
dune-build-opam-files = callPackage ./dune-build-opam-files {
Expand Down