From 5d3e62f757e968d28e90bdc4f0abe2ee07a09f3f Mon Sep 17 00:00:00 2001
From: Bryan Newbold <bnewbold@robocracy.org>
Date: Wed, 24 Nov 2021 15:45:33 -0800
Subject: codespell fixes in python code (comments)

---
 python/fatcat_tools/harvest/pubmed.py   | 2 +-
 python/fatcat_tools/importers/common.py | 4 ++--
 python/fatcat_web/entity_helpers.py     | 2 +-
 python/fatcat_web/search.py             | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

(limited to 'python')

diff --git a/python/fatcat_tools/harvest/pubmed.py b/python/fatcat_tools/harvest/pubmed.py
index 560427fb..78b1755b 100644
--- a/python/fatcat_tools/harvest/pubmed.py
+++ b/python/fatcat_tools/harvest/pubmed.py
@@ -279,7 +279,7 @@ def ftpretr(
     "ftp://ftp.ncbi.nlm.nih.gov/pubmed/updatefiles/pubmed20n1016.xml.gz") to a
     local temporary file. Returns the name of the local, closed temporary file.
 
-    It is the reponsibility of the caller to cleanup the temporary file.
+    It is the responsibility of the caller to cleanup the temporary file.
 
     Implements a basic retry mechanism, e.g. that became an issue in 08/2021,
     when we encountered EOFError while talking to the FTP server. Retry delay in seconds.
diff --git a/python/fatcat_tools/importers/common.py b/python/fatcat_tools/importers/common.py
index e2157ee5..cd51a24c 100644
--- a/python/fatcat_tools/importers/common.py
+++ b/python/fatcat_tools/importers/common.py
@@ -432,7 +432,7 @@ class EntityImporter:
         - WEAK
         - AMBIGUOUS
 
-        Eg, if there is any EXACT match that is always returned; an AMBIGIOUS
+        Eg, if there is any EXACT match that is always returned; an AMBIGUOUS
         result is only returned if all the candidate matches were ambiguous.
         """
 
@@ -725,7 +725,7 @@ class KafkaBs4XmlPusher(RecordPusher):
         while True:
             # Note: this is batch-oriented, because underlying importer is
             # often batch-oriented, but this doesn't confirm that entire batch
-            # has been pushed to fatcat before commiting offset. Eg, consider
+            # has been pushed to fatcat before committing offset. Eg, consider
             # case where there there is one update and thousands of creates;
             # update would be lingering in importer, and if importer crashed
             # never created.
diff --git a/python/fatcat_web/entity_helpers.py b/python/fatcat_web/entity_helpers.py
index 2e3b83c5..285513a8 100644
--- a/python/fatcat_web/entity_helpers.py
+++ b/python/fatcat_web/entity_helpers.py
@@ -92,7 +92,7 @@ def enrich_release_entity(entity: ReleaseEntity) -> ReleaseEntity:
         # November 1.
         if ref.extra and ref.extra.get("unstructured"):
             ref.extra["unstructured"] = strip_extlink_xml(ref.extra["unstructured"])
-    # for backwards compatability, copy extra['subtitle'] to subtitle
+    # for backwards compatibility, copy extra['subtitle'] to subtitle
     if not entity.subtitle and entity.extra and entity.extra.get("subtitle"):
         if isinstance(entity.extra["subtitle"], str):
             entity.subtitle = entity.extra["subtitle"]
diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py
index fdfc4d80..b9994f28 100644
--- a/python/fatcat_web/search.py
+++ b/python/fatcat_web/search.py
@@ -161,8 +161,8 @@ def agg_to_dict(agg: Any) -> Dict[str, Any]:
     """
     Takes a simple term aggregation result (with buckets) and returns a simple
     dict with keys as terms and counts as values. Includes an extra value
-    '_other', and by convention aggregations should be writen to have "missing"
-    vaules as '_unknown'.
+    '_other', and by convention aggregations should be written to have "missing"
+    values as '_unknown'.
     """
     result = dict()
     for bucket in agg.buckets:
-- 
cgit v1.2.3