Skip to content

Commit b7ca8f6

Browse files
authored
Merge pull request #281 from loicreynier/feat-fprettify
Add fprettify
2 parents d3de8f6 + ae64db3 commit b7ca8f6

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,11 @@ use nix
184184

185185
## TOML
186186

187-
- [taplo fmt](https://github.com/tamasfe/taplo)
187+
- [taplo fmt](https://github.com/tamasfe/taplo)
188+
189+
## Fortran
190+
191+
- [fprettify](https://github.com/pseewald/fprettify)
188192

189193
## Spell checkers
190194

modules/hooks.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,5 +1190,12 @@ in
11901190
"The version of nixpkgs used by pre-commit-hooks.nix must have `checkmake` in version at least 0.2.2 for it to work on non-Linux systems."
11911191
"${tools.checkmake}/bin/checkmake";
11921192
};
1193+
1194+
fprettify = {
1195+
name = "fprettify";
1196+
description = "Auto-formatter for modern Fortran code.";
1197+
types = [ "fortran " ];
1198+
entry = "${tools.fprettify}/bin/fprettify";
1199+
};
11931200
};
11941201
}

nix/tools.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
, dune_3
1717
, editorconfig-checker
1818
, elmPackages
19+
, fprettify
1920
, git
2021
, gitAndTools
2122
, gptcommit ? null
@@ -66,7 +67,7 @@ let
6667
};
6768
in
6869
{
69-
inherit actionlint ansible-lint alejandra cabal-fmt cabal2nix cargo clang-tools gptcommit clippy deadnix dhall editorconfig-checker hadolint hindent hlint hpack html-tidy nil nixfmt nixpkgs-fmt opam ormolu rustfmt shellcheck shfmt statix stylish-haskell stylua tagref typos go mdsh revive go-tools yamllint ruff topiary;
70+
inherit actionlint ansible-lint alejandra cabal-fmt cabal2nix cargo clang-tools gptcommit clippy deadnix dhall editorconfig-checker fprettify hadolint hindent hlint hpack html-tidy nil nixfmt nixpkgs-fmt opam ormolu rustfmt shellcheck shfmt statix stylish-haskell stylua tagref typos go mdsh revive go-tools yamllint ruff topiary;
7071
inherit (elmPackages) elm-format elm-review elm-test;
7172
# TODO: these two should be statically compiled
7273
inherit (haskellPackages) fourmolu;

0 commit comments

Comments
 (0)