diff options
author | Frederick Muriuki Muriithi | 2021-09-22 09:02:46 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-09-22 09:02:46 +0300 |
commit | 56c73324c285d896567268370f3955bbd15754b0 (patch) | |
tree | 88516f6305f3141e5fcc1d2be5b1c32c62c4b5f6 | |
parent | 71cc35e5178904b512b9007e33be17a36f6656f2 (diff) | |
download | genenetwork3-56c73324c285d896567268370f3955bbd15754b0.tar.gz |
Fix more pylint errors
-rw-r--r-- | gn3/computations/qtlreaper.py | 3 | ||||
-rw-r--r-- | gn3/db/genotypes.py | 2 | ||||
-rw-r--r-- | tests/unit/db/test_traits.py | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/gn3/computations/qtlreaper.py b/gn3/computations/qtlreaper.py index 5ddea76..8b2893e 100644 --- a/gn3/computations/qtlreaper.py +++ b/gn3/computations/qtlreaper.py @@ -74,7 +74,8 @@ def run_reaper( if separate_nperm_output: permu_output_filename: Union[None, str] = "{}/qtlreaper/permu_output_{}.txt".format( output_dir, random_string(10)) - output_list = output_list + ["--permu_output", permu_output_filename] # type: ignore[list-item] + output_list = output_list + [ + "--permu_output", permu_output_filename] # type: ignore[list-item] else: permu_output_filename = None diff --git a/gn3/db/genotypes.py b/gn3/db/genotypes.py index 9ea9f20..9987320 100644 --- a/gn3/db/genotypes.py +++ b/gn3/db/genotypes.py @@ -56,7 +56,7 @@ def __load_genotype_samples_from_geno(genotype_filename: str): continue break - headers = line.split("\t" ) # type: ignore[arg-type] + headers = line.split("\t") # type: ignore[arg-type] if headers[3] == "Mb": return headers[4:] return headers[3:] diff --git a/tests/unit/db/test_traits.py b/tests/unit/db/test_traits.py index ee98893..baa2af3 100644 --- a/tests/unit/db/test_traits.py +++ b/tests/unit/db/test_traits.py @@ -166,6 +166,7 @@ class TestTraitsDBFunctions(TestCase): the right calls. """ + # pylint: disable=C0103 db_mock = mock.MagicMock() STRAIN_ID_SQL: str = "UPDATE Strain SET Name = %s WHERE Id = %s" |