From 36caec81e7f288e04319dc8f6631d0e6d57de93d Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Fri, 3 Jun 2022 23:45:50 +0200 Subject: [PATCH] Fix spelling errors Fixde with: codespell --skip test --write-changes --interactive=2 --- .github/workflows/test.yml | 4 ++-- docs/source/changelog.rst | 4 ++-- docs/source/examples.rst | 4 ++-- pyhamtools/callinfo.py | 2 +- pyhamtools/lookuplib.py | 4 ++-- pyhamtools/qsl.py | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 715f86a..260ee43 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: PYTHON_VERSION: ${{ matrix.python-version }} # delay the execution randomly by 1-20sec to reduce the # amount of concurrent API calls on Clublog and QRZ.com - # when all CI jobs execute simultaniously + # when all CI jobs execute simultaneously run: | sleep $[ ( $RANDOM % 20 ) + 1 ]s pytest --cov=./ @@ -94,6 +94,6 @@ jobs: # PYTHON_VERSION: ${{ matrix.python-version }} # # delay the execution randomly by 1-20sec to reduce the # # amount of concurrent API calls on Clublog and QRZ.com - # # when all CI jobs execute simultaniously + # # when all CI jobs execute simultaneously # run: | # pytest \ No newline at end of file diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 53fd0d3..8fbcad1 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -16,7 +16,7 @@ PyHamtools 0.7.9 16. December 2021 * Calculating sunrise and sunset close to the artic region raised a ValueError due - to a bug in the underlying 3rd party libary ephem. This release upgrades the + to a bug in the underlying 3rd party library ephem. This release upgrades the dependency to ephem > 4.1.3 which has the bug already fixed. PyHamTools 0.7.8 @@ -188,7 +188,7 @@ PyHamTools 0.5.0 * corrected Longitude to General Standard (-180...0° West, 0...180° East) [LookupLib] - * improved callsign decoding alogrithm [CallInfo] + * improved callsign decoding algorithm [CallInfo] * added special case to decode location of VK9 callsigns [CallInfo] diff --git a/docs/source/examples.rst b/docs/source/examples.rst index 6400a5d..8b81cce 100644 --- a/docs/source/examples.rst +++ b/docs/source/examples.rst @@ -49,7 +49,7 @@ Decode a Callsign and get Country name, ADIF ID, Latitude & Longitude In this example we will use AD1C's Country-files.com database to perform the lookup. -First we need to instanciate a LookupLib object for Country-files.com database. The latest database will be downloaded automatically. +First we need to instantiate a LookupLib object for Country-files.com database. The latest database will be downloaded automatically. .. code-block:: none @@ -57,7 +57,7 @@ First we need to instanciate a LookupLib object for Country-files.com database. >>> my_lookuplib = LookupLib(lookuptype="countryfile") -Next, a Callinfo object needs to be instanciated. The lookuplib object will be injected on construction. +Next, a Callinfo object needs to be instantiated. The lookuplib object will be injected on construction. .. code-block:: none diff --git a/pyhamtools/callinfo.py b/pyhamtools/callinfo.py index 36c8546..26c5f09 100644 --- a/pyhamtools/callinfo.py +++ b/pyhamtools/callinfo.py @@ -198,7 +198,7 @@ class Callinfo(object): if len(re.findall(r'\d+', callsign)) == 1: #call has just on digit e.g. DH1TW callsign = re.sub('[\d]+', area_nr, callsign) else: # call has several digits e.g. 7N4AAL - pass # no (two) digit prefix contries known where appendix would change entitiy + pass # no (two) digit prefix countries known where appendix would change entity return self._iterate_prefix(callsign, timestamp) else: diff --git a/pyhamtools/lookuplib.py b/pyhamtools/lookuplib.py index 3ea6f48..e28932a 100644 --- a/pyhamtools/lookuplib.py +++ b/pyhamtools/lookuplib.py @@ -55,7 +55,7 @@ class LookupLib(object): lookup against the Clublog API or QRZ.com. The entire lookup data (where database files are downloaded) can also be copied into Redis, which an extremely - fast in-memory Key/Value store. A LookupLib object can be instanciated to perform then all lookups in Redis, + fast in-memory Key/Value store. A LookupLib object can be instantiated to perform then all lookups in Redis, instead processing and loading the data from Internet / File. This saves some time and allows several instances of :py:class:`LookupLib` to query the same data concurrently. @@ -1147,7 +1147,7 @@ class LookupLib(object): if len(cty_header) == 2: self._logger.debug("Header successfully retrieved from CTY File") elif len(cty_header) < 2: - self._logger.warning("Header could only be partically retrieved from CTY File") + self._logger.warning("Header could only be partially retrieved from CTY File") self._logger.warning("Content of Header: ") for key in cty_header: self._logger.warning(str(key)+": "+str(cty_header[key])) diff --git a/pyhamtools/qsl.py b/pyhamtools/qsl.py index d6df1f4..8cd5cf0 100644 --- a/pyhamtools/qsl.py +++ b/pyhamtools/qsl.py @@ -10,7 +10,7 @@ from io import BytesIO from requests.exceptions import ConnectionError, HTTPError, Timeout def get_lotw_users(**kwargs): - """Download the latest offical list of `ARRL Logbook of the World (LOTW)`__ users. + """Download the latest official list of `ARRL Logbook of the World (LOTW)`__ users. Args: url (str, optional): Download URL @@ -69,7 +69,7 @@ def get_lotw_users(**kwargs): return lotw def get_clublog_users(**kwargs): - """Download the latest offical list of `Clublog`__ users. + """Download the latest official list of `Clublog`__ users. Args: url (str, optional): Download URL @@ -150,7 +150,7 @@ def get_clublog_users(**kwargs): except TypeError: #some date fields contain null instead of a valid datetime string - we ignore them print("Ignoring invalid type in data:", call, call_data) pass - except ValueError: #some date fiels are invalid. we ignore them for the moment + except ValueError: #some date fields are invalid. we ignore them for the moment print("Ignoring invalid data:", call, call_data) pass