aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-03 16:21:17 -0600
committerFrederick Muriuki Muriithi2024-12-03 16:22:11 -0600
commitcb171851416f7f895ccf8bc582b8b6995c71e4d0 (patch)
tree9cdf165d38036e5f92b3f8c90c8cfb660fcc7b1b
parenta7accfc7883b77a16e8609cf6153354b4ad941ec (diff)
downloadgn-uploader-cb171851416f7f895ccf8bc582b8b6995c71e4d0.tar.gz
Fix some linting and mypy issues.
-rw-r--r--scripts/rqtl2/phenotypes_qc.py2
-rw-r--r--uploader/jobs.py5
-rw-r--r--uploader/phenotypes/views.py1
3 files changed, 4 insertions, 4 deletions
diff --git a/scripts/rqtl2/phenotypes_qc.py b/scripts/rqtl2/phenotypes_qc.py
index 4d3f188..ba28ed0 100644
--- a/scripts/rqtl2/phenotypes_qc.py
+++ b/scripts/rqtl2/phenotypes_qc.py
@@ -267,7 +267,7 @@ def integer_error(
return InvalidValue(filename, rowtitle, coltitle, cellvalue, message)
-def qc_pheno_file(# pylint: disable=[too-many-arguments]
+def qc_pheno_file(# pylint: disable=[too-many-locals, too-many-arguments]
filepath: Path,
redisuri: str,
fqkey: str,
diff --git a/uploader/jobs.py b/uploader/jobs.py
index 270028a..90e3dc2 100644
--- a/uploader/jobs.py
+++ b/uploader/jobs.py
@@ -10,9 +10,10 @@ from datetime import timedelta
from typing import Union, Optional
from redis import Redis
-from functional_tools import take
from flask import current_app as app
+from functional_tools import take
+
JOBS_PREFIX = "jobs"
class JobNotFound(Exception):
@@ -138,7 +139,7 @@ def job_errors(
prefix: str,
job_id: Union[str, uuid.UUID],
count: int = 100
-) -> tuple[dict, ...]:
+) -> list:
"""Fetch job errors"""
return take(
(
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 74de3ea..9d1c024 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -3,7 +3,6 @@ import sys
import uuid
import json
from pathlib import Path
-from typing import Union
from functools import wraps
from logging import INFO, ERROR, DEBUG, FATAL, CRITICAL, WARNING