lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.16-16-g48bfd84

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.16-16-g48bfd84



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  48bfd84b02a09e014e01090b37fe188dc0ac895b (commit)
      from  dcdb5c9bdd20da7fdd5f7fcc9806a2b3c1d0c7ab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=48bfd84b02a09e014e01090b37fe188dc0ac895b

commit 48bfd84b02a09e014e01090b37fe188dc0ac895b
Author: Dimitri Papadopoulos 
<3234522+DimitriPapadopoulos@users.noreply.github.com>
Date:   Sat Aug 7 16:54:06 2021 +0200

    Fix typos found by codespell
    
    Closes https://github.com/arthurdejong/python-stdnum/pull/269

diff --git a/stdnum/ad/nrt.py b/stdnum/ad/nrt.py
index 00185c9..50e53ca 100644
--- a/stdnum/ad/nrt.py
+++ b/stdnum/ad/nrt.py
@@ -60,7 +60,7 @@ def compact(number):
 def validate(number):
     """Check if the number is a valid Andorra NRT number.
 
-    This checks the length, formatting and other contraints. It does not check
+    This checks the length, formatting and other constraints. It does not check
     for control letter.
     """
     number = compact(number)
diff --git a/stdnum/bitcoin.py b/stdnum/bitcoin.py
index 9e85512..6fffa26 100644
--- a/stdnum/bitcoin.py
+++ b/stdnum/bitcoin.py
@@ -20,7 +20,7 @@
 """Bitcoin address.
 
 A Bitcoin address is an identifier that is used as destination in a Bitcoin
-transaction. It is based on a hash of the public portion of a keypair.
+transaction. It is based on a hash of the public portion of a key pair.
 
 There are currently three address formats in use:
 
diff --git a/stdnum/do/ncf.py b/stdnum/do/ncf.py
index 7920908..711c9e1 100644
--- a/stdnum/do/ncf.py
+++ b/stdnum/do/ncf.py
@@ -27,7 +27,7 @@ filing. The e-CF (Comprobante Fiscal Electrónico) is used 
together with a
 digital certificate for the same purpose. The number is either 19, 11 or 13
 (e-CF) digits long.
 
-The 19 digit number starts wit a letter (A or P) to indicate that the number
+The 19 digit number starts with a letter (A or P) to indicate that the number
 was assigned by the taxpayer or the DGII, followed a 2-digit business unit
 number, a 3-digit location number, a 3-digit mechanism identifier, a 2-digit
 document type and a 8-digit serial number.
diff --git a/stdnum/isbn.py b/stdnum/isbn.py
index b868be6..9e4d521 100644
--- a/stdnum/isbn.py
+++ b/stdnum/isbn.py
@@ -69,7 +69,7 @@ from stdnum.util import clean, isdigits
 def compact(number, convert=False):
     """Convert the ISBN to the minimal representation. This strips the number
     of any valid ISBN separators and removes surrounding whitespace. If the
-    covert parameter is True the number is also converted to ISBN-13
+    convert parameter is True the number is also converted to ISBN-13
     format."""
     number = clean(number, ' -').strip().upper()
     if len(number) == 9:
@@ -175,7 +175,7 @@ def to_isbn10(number):
 def split(number, convert=False):
     """Split the specified ISBN into an EAN.UCC prefix, a group prefix, a
     registrant, an item number and a check-digit. If the number is in ISBN-10
-    format the returned EAN.UCC prefix is '978'. If the covert parameter is
+    format the returned EAN.UCC prefix is '978'. If the convert parameter is
     True the number is converted to ISBN-13 format first."""
     # clean up number
     number = compact(number, convert)
@@ -200,6 +200,6 @@ def format(number, separator='-', convert=False):
     EAN.UCC prefix (if any), the group prefix, the registrant, the item
     number and the check-digit separated (if possible) by the specified
     separator. Passing an empty separator should equal compact() though this
-    is less efficient. If the covert parameter is True the number is
+    is less efficient. If the convert parameter is True the number is
     converted to ISBN-13 format first."""
     return separator.join(x for x in split(number, convert) if x)
diff --git a/stdnum/util.py b/stdnum/util.py
index 5b0e4e8..11b58dd 100644
--- a/stdnum/util.py
+++ b/stdnum/util.py
@@ -44,7 +44,7 @@ _digits_re = re.compile(r'^[0-9]+$')
 
 
 def _mk_char_map(mapping):
-    """Transform a dictionary with comma separated uniode chracter names
+    """Transform a dictionary with comma separated uniode character names
     to tuples with unicode characters as key."""
     for key, value in mapping.items():
         for char in key.split(','):
diff --git a/stdnum/vn/mst.py b/stdnum/vn/mst.py
index a8cc417..55d5575 100644
--- a/stdnum/vn/mst.py
+++ b/stdnum/vn/mst.py
@@ -25,7 +25,7 @@ where the first ten digits are the same as the parent 
company's.
 
 The first two digits is the province code where the business was
 established. If an enterprise relocates its head office from one
-province to another, ths MST will remain unchanged.
+province to another, the MST will remain unchanged.
 
 The following seven digits are a sequential number from 0000001 to
 9999999.
diff --git a/tests/test_cusip.doctest b/tests/test_cusip.doctest
index 60e9c18..7ee1acb 100644
--- a/tests/test_cusip.doctest
+++ b/tests/test_cusip.doctest
@@ -25,7 +25,7 @@ tries to validate a number of numbers that have been found 
online.
 >>> from stdnum.exceptions import *
 
 
-Number should not use O (captial o) or I (capital 1) to avoid confusion with
+Number should not use O (capital o) or I (capital 1) to avoid confusion with
 0 and 1:
 
 >>> cusip.validate('0O141T575')
diff --git a/tests/test_de_idnr.doctest b/tests/test_de_idnr.doctest
index ecd65ed..20dc19c 100644
--- a/tests/test_de_idnr.doctest
+++ b/tests/test_de_idnr.doctest
@@ -43,7 +43,7 @@ Traceback (most recent call last):
 InvalidFormat: ...
 
 
-The first 10 digits of the IdNr is supposed to contain extactly one digit
+The first 10 digits of the IdNr is supposed to contain exactly one digit
 twice (or three times since 2016) and all other digits in the number can only
 appear once. This tries to catch some corner cases. Note that only the first
 10 digits are considered for this.
diff --git a/update/be_banks.py b/update/be_banks.py
index 3a59a60..e0fdaa8 100755
--- a/update/be_banks.py
+++ b/update/be_banks.py
@@ -1,7 +1,7 @@
 #!/usr/bin/env python3
 # coding: utf-8
 
-# update/be_banks.py - script to donwload Bank list from Belgian National Bank
+# update/be_banks.py - script to download Bank list from Belgian National Bank
 #
 # Copyright (C) 2018-2019 Arthur de Jong
 #
diff --git a/update/imsi.py b/update/imsi.py
index a6ab392..02440cb 100755
--- a/update/imsi.py
+++ b/update/imsi.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-# update/imsi.py - script to donwload from Wikipedia to build the database
+# update/imsi.py - script to download from Wikipedia to build the database
 #
 # Copyright (C) 2011-2021 Arthur de Jong
 #
diff --git a/update/isil.py b/update/isil.py
index dedd307..f830a2c 100755
--- a/update/isil.py
+++ b/update/isil.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-# update/isil.py - script to donwload ISIL agencies
+# update/isil.py - script to download ISIL agencies
 #
 # Copyright (C) 2011-2019 Arthur de Jong
 #
diff --git a/update/numlist.py b/update/numlist.py
index ec5c209..d815c5f 100755
--- a/update/numlist.py
+++ b/update/numlist.py
@@ -34,14 +34,14 @@ from stdnum import util  # noqa, isort:skip
 
 
 # these are excluded
-algortihms = (
+algorithms = (
     'stdnum.verhoeff', 'stdnum.luhn', 'stdnum.iso7064', 'stdnum.damm')
 
 
 def get_number_modules():
     """Provide the number modules that are not algorithms."""
     for module in util.get_number_modules():
-        if module.__name__ not in algortihms and \
+        if module.__name__ not in algorithms and \
            not module.__name__.startswith('stdnum.iso7064'):
             yield module
 

-----------------------------------------------------------------------

Summary of changes:
 stdnum/ad/nrt.py           | 2 +-
 stdnum/bitcoin.py          | 2 +-
 stdnum/do/ncf.py           | 2 +-
 stdnum/isbn.py             | 6 +++---
 stdnum/util.py             | 2 +-
 stdnum/vn/mst.py           | 2 +-
 tests/test_cusip.doctest   | 2 +-
 tests/test_de_idnr.doctest | 2 +-
 update/be_banks.py         | 2 +-
 update/imsi.py             | 2 +-
 update/isil.py             | 2 +-
 update/numlist.py          | 4 ++--
 12 files changed, 15 insertions(+), 15 deletions(-)


hooks/post-receive
-- 
python-stdnum