Skip to content

Commit 0d01bf5

Browse files
committed
Fix linting
1 parent 7ab2003 commit 0d01bf5

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

lib/galaxy/managers/configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ def _config_is_truthy(item, key, **context):
235235
"install_resolver_dependencies": _use_config,
236236
"enable_tool_generated_tours": _use_config,
237237
"sentry_dsn_public": lambda item, key, **context: item.sentry_dsn_public,
238-
"enable_webhooks": lambda item, key, **context: bool(self.app.webhooks_registry.webhooks),
238+
"enable_webhooks": lambda item, key, **context: hasattr(self.app, "webhooks_registry")
239+
and bool(self.app.webhooks_registry.webhooks),
239240
}
240241

241242

lib/galaxy/managers/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def serialize_disk_usage_for(self, user: model.User, label: Optional[str]) -> Us
731731
)
732732

733733
def serialize_workflow_menu_entries(self, user: model.User) -> list[UserWorkflowMenuEntry]:
734-
stored_workflow_menu_index = dict()
734+
stored_workflow_menu_index = {}
735735
stored_workflow_menu_entries: list[UserWorkflowMenuEntry] = []
736736
for menu_item in getattr(user, "stored_workflow_menu_entries", []):
737737
encoded_id = self.app.security.encode_id(menu_item.stored_workflow_id)

lib/galaxy/webapps/galaxy/api/context.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66

77
from fastapi import Request
88

9-
from galaxy import (
10-
util,
11-
web,
12-
)
9+
from galaxy import web
1310
from galaxy.managers.configuration import ConfigurationManager
1411
from galaxy.managers.context import ProvidesUserContext
1512
from galaxy.managers.users import CurrentUserSerializer

0 commit comments

Comments
 (0)