IntersectMBO / cardano-cli

This repository contains sources for the command-line interface (CLI) tool for interacting with the Cardano blockchain.
Apache License 2.0
39 stars 14 forks source link

Add fourmolu, cabal-gild, and update hooks #835

Closed palas closed 2 months ago

palas commented 2 months ago

Changelog

- description: |
    Added fourmolu and cabal-gild, and updated hooks
  type:
    - maintenance    # not directly related to the code

Context

We don't want to have to worry about formatting .hs or .cabal files, and we want to be consistent. This PR tries to address this by establishing and enforcing strong formatters (formoulu, and cabal-gild), which are now applied in addition to stylish-haskell and hlint.

How to trust this PR

Probably check that the hook works for you. Also that you are happy with the changes and configuration, and that the CI passes. Probably look at each commit independently.

Checklist

palas commented 2 months ago

If those are the same changes as in https://github.com/IntersectMBO/cardano-api/pull/583 I'm ok with them. I'm blocking merge temporarily to test drive them in cardano-api a bit before we propagate the changes to CLI.

@carbolymer: Makes sense. Until when do you think we should wait?