8000 Ignore N818 because our exceptions are not named error · cedk/python-stdnum@175b1e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 175b1e5

Browse files
committed
Ignore N818 because our exceptions are not named error
1 parent 38c368d commit 175b1e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdnum/exceptions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __str__(self):
3636
return ''.join(self.args[:1]) or getattr(self, 'message', '')
3737

3838

39-
class InvalidFormat(ValidationError):
39+
class InvalidFormat(ValidationError): # noqa N818
4040
"""Something is wrong with the format of the number.
4141
4242
This generally means characters or delimiters that are not allowed are
@@ -45,19 +45,19 @@ class InvalidFormat(ValidationError):
4545
message = 'The number has an invalid format.'
4646

4747

48-
class InvalidChecksum(ValidationError):
48+
class InvalidChecksum(ValidationError): # noqa N818
4949
"""The number's internal checksum or check digit does not match."""
5050

5151
message = "The number's checksum or check digit is invalid."
5252

5353

54-
class InvalidLength(InvalidFormat):
54+
class InvalidLength(InvalidFormat): # noqa N818
5555
"""The length of the number is wrong."""
5656

5757
message = 'The number has an invalid length.'
5858

5959

60-
class InvalidComponent(ValidationError):
60+
class InvalidComponent(ValidationError): # noqa N818
6161
"""One of the parts of the number has an invalid reference.
6262
6363
Some part of the number refers to some external entity like a country

0 commit comments

Comments
 (0)
0