From e68c807e6598a4087d7c83510ba33c81139f5544 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 28 Jun 2022 15:20:54 +0300 Subject: Check for inconsistent columns The number columns in each contents line should be equal to the nember of columns in the header line. --- quality_control/errors.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'quality_control/errors.py') diff --git a/quality_control/errors.py b/quality_control/errors.py index 678fe09..fff6c7c 100644 --- a/quality_control/errors.py +++ b/quality_control/errors.py @@ -7,3 +7,6 @@ InvalidValue = namedtuple( DuplicateHeading = namedtuple( "DuplicateHeading", ("line", "columns", "heading", "message")) + +InconsistentColumns = namedtuple( + "InconsistentColumns", ("line", "header_count", "contents_count", "message")) -- cgit v1.2.3