Skip to content

Commit

Permalink
Silence ruff where it's incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Mar 11, 2024
1 parent c55aee0 commit 2320b92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/dataproviders/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def __iter__(self):
for i, row in enumerate(results):
if i >= self.limit:
break
yield [val for val in row]
yield [val for val in row] # noqa: C416
else:
yield

Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/managers/libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def list(self, trans, deleted: Optional[bool] = False) -> Tuple[Query, Dict[str,
"""
is_admin = trans.user_is_admin
library_access_action = trans.app.security_agent.permitted_actions.LIBRARY_ACCESS.action
restricted_library_ids = {id for id in get_library_ids(trans.sa_session, library_access_action)}
restricted_library_ids = {id for id in get_library_ids(trans.sa_session, library_access_action)} # noqa: C416
prefetched_ids = {"restricted_library_ids": restricted_library_ids}

if is_admin:
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8493,7 +8493,7 @@ def poll_unhandled_workflow_ids(sa_session):
.where(WorkflowInvocation.handler.is_(None))
.order_by(WorkflowInvocation.id.asc())
)
return [wid for wid in sa_session.scalars(stmt)]
return [wid for wid in sa_session.scalars(stmt)] # noqa: C416

@staticmethod
def poll_active_workflow_ids(engine, scheduler=None, handler=None):
Expand Down

0 comments on commit 2320b92

Please sign in to comment.