-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PLT-42 Added cabal-fmt to pre-commit hooks & reformatted all existing… #505
PLT-42 Added cabal-fmt to pre-commit hooks & reformatted all existing… #505
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to change anything in CONTRIBUTING
or any other development docs?
I updated that in a new commit. |
Additional things would be:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should format all the cabal files. Otherwise the will randomly get formatted in other people's PRs, which is confusing for them. Better to move to the new desired state in one go.
plutus-contract-certification/plutus-contract-certification.cabal
Outdated
Show resolved
Hide resolved
Also, rebase your branch on the latest commit of |
Still needs a test for CI. |
5b00ff6
to
4d6b246
Compare
This was a rebase gone wrong. It's now fixed. |
plutus-contract-certification/plutus-contract-certification.cabal
Outdated
Show resolved
Hide resolved
FWIW, I think this PR would be smoother if we left the actual content changes (e.g. fixing the plutus/plutus-apps stuff) to a later PR and kept this one just focussed on formatting. |
@michaelpj Right :) The formatting looks good, so I think we can merge once CI passes. |
#505) * PLT-42 Added cabal-fmt to pre-commit hooks & reformatted all existing cabal files * Created fix-cabal-fmt script and added to shell * Added CI test for cabal-fmt * Updated CONTRIBUTING.adoc to include addition of cabal-fmt * Replaced occurences of iohk/plutus with input-output-hk/plutus-apps
#505) * PLT-42 Added cabal-fmt to pre-commit hooks & reformatted all existing cabal files * Created fix-cabal-fmt script and added to shell * Added CI test for cabal-fmt * Updated CONTRIBUTING.adoc to include addition of cabal-fmt * Replaced occurences of iohk/plutus with input-output-hk/plutus-apps
cabal-fmt
is now available inside nix-shell, and as a pre-commit hook.I have personally tested it only on one cabal file, to keep this PR small, and so that you may have an idea of what the new format looks like.
As soon as a change is made to any other cabal file from anybody else, the tool will format it.
But I'm open to format all other cabal files and add a new commit to this PR.