From 320f6623c07bc36d77d305a48a98847264f19352 Mon Sep 17 00:00:00 2001
From: pcain-usgs <pcain@usgs.gov>
Date: Tue, 3 Mar 2020 11:46:29 -0700
Subject: [PATCH] Update pre-commit to not specify version, use format strings
 in make_cal.py

---
 .pre-commit-config.yaml | 1 -
 bin/make_cal.py         | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b9a75affd..087d0de67 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -3,4 +3,3 @@ repos:
     rev: stable
     hooks:
     - id: black
-      language_version: python3.6
diff --git a/bin/make_cal.py b/bin/make_cal.py
index eaa91d09a..6a9bee3aa 100755
--- a/bin/make_cal.py
+++ b/bin/make_cal.py
@@ -53,7 +53,7 @@ url = (
 )
 
 try:
-    print("Loading data from web service\n\t{}".format(url), file=sys.stderr)
+    print(f"Loading data from web service\n\t{url}", file=sys.stderr)
     response = urllib2.urlopen(
         url,
         # allow environment certificate bundle override
@@ -62,7 +62,7 @@ try:
     data = response.read()
     observations = json.loads(data)
 except Exception as e:
-    print("Error loading data ({})".format(str(e)), file=sys.stderr)
+    print(f"Error loading data ({e})", file=sys.stderr)
     sys.exit(1)
 
 
-- 
GitLab