about summary refs log tree commit diff
path: root/scripts/genotypes
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-10-01 10:27:59 -0500
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-10-01 10:29:31 -0500
commit12b60ed226307192dc44cb9648cb769dd103f6f5 (patch)
tree116662b63d3098cc035f6a30d45d66d9e424f21e /scripts/genotypes
parent0b4fbe928de6c5ab9361787549de748ba9392e40 (diff)
downloadgn-uploader-12b60ed226307192dc44cb9648cb769dd103f6f5.tar.gz
Fix pylint issues to get a clean working state.
Diffstat (limited to 'scripts/genotypes')
-rw-r--r--scripts/genotypes/preprocess_csv_collect_info.py6
-rw-r--r--scripts/genotypes/types.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/genotypes/preprocess_csv_collect_info.py b/scripts/genotypes/preprocess_csv_collect_info.py
index ab046d8..2d76021 100644
--- a/scripts/genotypes/preprocess_csv_collect_info.py
+++ b/scripts/genotypes/preprocess_csv_collect_info.py
@@ -21,8 +21,7 @@ logger = logging.getLogger(__name__)
 def filecontents(path: Path) -> Iterator[str]:
     """Return an iterator to the file contents"""
     with path.open("r") as fl:
-        for line in fl.readlines():
-            yield line
+        yield from fl.readlines()
 
 
 def identify_columns(
@@ -82,7 +81,7 @@ def file_statistics(lines: Iterator[str], fileconfigs: dict) -> FileStats:
     dotgeno = {}
     headers: tuple[str, ...] = tuple()
     genosymbols: set[str] = set()
-    errors: tuple()
+    # errors: tuple()
     for line in lines:
         stats["total_lines"] = stats.get("total_lines", 0) + 1
         _line = line.strip()
@@ -236,6 +235,7 @@ if __name__ == "__main__":
 
 
     def main() -> SysExit:
+        """Entry-point to the pre-processor."""
         try:
             args = parse_args()
             setup_logging(logger, args.log_level.upper(), tuple())
diff --git a/scripts/genotypes/types.py b/scripts/genotypes/types.py
index 8eeb574..bf46606 100644
--- a/scripts/genotypes/types.py
+++ b/scripts/genotypes/types.py
@@ -42,7 +42,7 @@ class LineError:
 
 
 @dataclass(frozen=True)
-class FileStats:
+class FileStats:# pylint: disable=[too-many-instance-attributes]
     """Custom file statistics."""
     data_lines: int
     total_lines: int