@@ -221,7 +221,7 @@ async def _create_genomic_table(self) -> None:
221221 WHERE table_schema = '{ self .schema } '
222222 AND table_name = 'genomic'
223223 );
224- """
224+ """ # noqa: S608
225225 genomic_table_exists = await self .execute_query (check_table_exists )
226226 genomic_table_exists = genomic_table_exists [0 ].get ("exists" )
227227 if genomic_table_exists is None :
@@ -250,7 +250,7 @@ async def _create_genomic_table(self) -> None:
250250 LEFT JOIN { self .schema } .exon_aln ea ON
251251 (((te.exon_id = ea.tx_exon_id) AND
252252 (ae.exon_id = ea.alt_exon_id))));
253- """
253+ """ # noqa: S608
254254 await self .execute_query (create_genomic_table )
255255
256256 indexes = [
@@ -325,13 +325,13 @@ async def get_cds_start_end(self, tx_ac: str) -> tuple[int, int] | None:
325325 cds_start_end = await self .execute_query (query )
326326 if cds_start_end :
327327 cds_start_end = cds_start_end [0 ]
328- if cds_start_end [0 ] is not None and cds_start_end [1 ] is not None : # noqa: RET503
328+ if cds_start_end [0 ] is not None and cds_start_end [1 ] is not None :
329329 return cds_start_end [0 ], cds_start_end [1 ]
330330 else :
331331 _logger .warning (
332332 "Unable to get coding start/end site for accession: %s" , tx_ac
333333 )
334- return None
334+ return None
335335
336336 async def get_newest_assembly_ac (self , ac : str ) -> list [str ]:
337337 """Find accession associated to latest genomic assembly
@@ -352,7 +352,7 @@ async def get_newest_assembly_ac(self, ac: str) -> list[str]:
352352 query = f"""
353353 SELECT ac
354354 FROM { self .schema } ._seq_anno_most_recent
355- WHERE ac LIKE '{ ac .split ('.' )[0 ]} %'
355+ WHERE ac LIKE '{ ac .split ("." )[0 ]} %'
356356 AND ((descr IS NULL) OR (descr = ''))
357357 { order_by_cond }
358358 """ # noqa: S608
@@ -499,7 +499,7 @@ async def get_tx_exon_aln_v_data(
499499 AND { start_pos } BETWEEN { pos_q }
500500 AND { end_pos } BETWEEN { pos_q }
501501 { order_by_cond }
502- """
502+ """ # noqa: S608
503503 result = await self .execute_query (query )
504504 if not result :
505505 _logger .warning ("Unable to find transcript alignment for query: %s" , query )
0 commit comments