Skip to content

Commit

Permalink
Add pre-commit hook for formatting the code
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Dec 6, 2023
1 parent 742fccf commit abc87c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Script directory

This directory contains scripts that are useful when working with this repository.

`pre-commit` is a script that is intended to be used as a pre-commit hook in git.
It should be linked into the repository like so: `ln -s $PWD/bin/pre-commit ./.git/hooks/pre-commit`.

4 changes: 4 additions & 0 deletions bin/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /usr/bin/env bash

nix fmt

0 comments on commit abc87c9

Please sign in to comment.