lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.16-6-g175b1e5

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

python-stdnum branch master updated. 1.16-6-g175b1e5



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  175b1e5e67c560ec8007e9a700b4459fabfd36c9 (commit)
      from  38c368de1c5977aa46c6cd99c276ce8fdca12cca (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=175b1e5e67c560ec8007e9a700b4459fabfd36c9

commit 175b1e5e67c560ec8007e9a700b4459fabfd36c9
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sun Jul 18 15:04:18 2021 +0200

    Ignore N818 because our exceptions are not named error

diff --git a/stdnum/exceptions.py b/stdnum/exceptions.py
index dd2a695..1ffd21a 100644
--- a/stdnum/exceptions.py
+++ b/stdnum/exceptions.py
@@ -36,7 +36,7 @@ class ValidationError(Exception):
         return ''.join(self.args[:1]) or getattr(self, 'message', '')
 
 
-class InvalidFormat(ValidationError):
+class InvalidFormat(ValidationError):  # noqa N818
     """Something is wrong with the format of the number.
 
     This generally means characters or delimiters that are not allowed are
@@ -45,19 +45,19 @@ class InvalidFormat(ValidationError):
     message = 'The number has an invalid format.'
 
 
-class InvalidChecksum(ValidationError):
+class InvalidChecksum(ValidationError):  # noqa N818
     """The number's internal checksum or check digit does not match."""
 
     message = "The number's checksum or check digit is invalid."
 
 
-class InvalidLength(InvalidFormat):
+class InvalidLength(InvalidFormat):  # noqa N818
     """The length of the number is wrong."""
 
     message = 'The number has an invalid length.'
 
 
-class InvalidComponent(ValidationError):
+class InvalidComponent(ValidationError):  # noqa N818
     """One of the parts of the number has an invalid reference.
 
     Some part of the number refers to some external entity like a country

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

Summary of changes:
 stdnum/exceptions.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
python-stdnum