Add pre-commit to the repo

This adds pre-commit which can be used to enforce consistent style
and common errors (like committing large files)
This commit is contained in:
Ian Fijolek
2019-11-21 15:30:19 -08:00
parent b808df7365
commit 9b9f803231
7 changed files with 50 additions and 15 deletions
+3 -3
View File
@@ -2,10 +2,10 @@ package main
import (
"fmt"
"github.com/prometheus/client_golang/prometheus"
// "github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/client_golang/prometheus/promhttp"
"net/http"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
)
// TODO: Not sure if this is the best way to handle. A global instance for