Skip to content

Commit

Permalink
Drop 'fmt' entirely, and directly use pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Nov 20, 2024
1 parent 85b7437 commit b224c24
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Recommended dev environment setup: https://nixos.asia/en/direnv

- Run `nix flake update` to update all flake inputs.
- Run `nix --accept-flake-config run github:juspay/omnix ci` to build _all_ outputs.
- Run `just fmt` in nix shell to autoformat the project. This uses [pre-commit].
- [pre-commit] hooks will automatically be setup in Nix shell. You can also run `pre-commit run -a` manually to run the hooks (e.g.: to autoformat the project tree using fourmolu, nixpkgs-fmt, etc. as well run programs like hlint). The hooks will checked as part of flake checks (thus CI).
- Run `just docs` to start Hoogle with packages in your cabal file.
- Run the application without installing: `nix run github:srid/haskell-template` (or `nix run .` from checkout)
- Common workflows
Expand Down
4 changes: 0 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ docs:
repl *ARGS:
cabal repl {{ ARGS }}

# Autoformat the project tree
fmt:
pre-commit run --all-files

# Run ghcid -- auto-recompile and run `main` function
run:
ghcid -T :main
File renamed without changes.

0 comments on commit b224c24

Please sign in to comment.