-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pre-commit hook to check scala formatting
This commit updates the pre-commit hook to run scalafmt the same way it already runs prettier. Apart from the exit code tweak, this basically involved copying the pre-commit hook from guardian/datawrapper-import#12 As with the prettier part of the hook, this should only run the formatter on files with staged changes that don’t have unstaged changes, and for any with both that fail formatting it should just report an error and exit.
- Loading branch information
Showing
1 changed file
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters