diff options
author | Frederick Muriuki Muriithi | 2024-04-08 10:04:38 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-04-08 10:04:38 +0300 |
commit | d5833b207185597d63bbc5ff2b0cc0df6df4ab69 (patch) | |
tree | 0f8b041ff04c0268523654e0d921eef45068ce29 | |
parent | 186df2bacd11beae53a0c4562e9dcc72c6d253c8 (diff) | |
download | gn-uploader-d5833b207185597d63bbc5ff2b0cc0df6df4ab69.tar.gz |
Fix pylint and mypy errors.
-rw-r--r-- | qc_app/upload/rqtl2.py | 4 | ||||
-rw-r--r-- | scripts/qc_on_rqtl2_bundle.py | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/qc_app/upload/rqtl2.py b/qc_app/upload/rqtl2.py index 876f17c..04bfa5b 100644 --- a/qc_app/upload/rqtl2.py +++ b/qc_app/upload/rqtl2.py @@ -653,7 +653,7 @@ def create_probeset_dataset(species_id: int, population_id: int):#pylint: disabl """Create a new probeset dataset.""" errorclasses = "alert-error error-rqtl2 error-rqtl2-create-probeset-dataset" with database_connection(app.config["SQL_URI"]) as conn: - def __thunk__(): + def __thunk__():#pylint: disable=[too-many-return-statements] form = request.form summary_page = redirect(url_for("upload.rqtl2.select_dataset_info", species_id=species_id, @@ -694,7 +694,7 @@ def create_probeset_dataset(species_id: int, population_id: int):#pylint: disabl "from list of datasets instead."), errorclasses) return summary_page - except Exception as _exc: + except Exception as _exc:# pylint: disable=[broad-except] app.logger.debug("Error creating ProbeSet dataset: %s", traceback.format_exc()) flash(("There was a problem creating your dataset. Please try " diff --git a/scripts/qc_on_rqtl2_bundle.py b/scripts/qc_on_rqtl2_bundle.py index 7e77104..deef8fe 100644 --- a/scripts/qc_on_rqtl2_bundle.py +++ b/scripts/qc_on_rqtl2_bundle.py @@ -16,7 +16,6 @@ from quality_control.errors import InvalidValue from quality_control.checks import decimal_points_error from qc_app import jobs -from qc_app.db_utils import database_connection from qc_app.check_connections import check_db, check_redis from r_qtl import errors as rqe |