Skip to content

Commit 80dd0f9

Browse files
committed
add noqa: F841
1 parent e322041 commit 80dd0f9

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

feeds/entity/types/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_name_from_id(i: str, token: str) -> str:
2222
"""
2323
try:
2424
return get_app_name(i)
25-
except CatalogError as e:
25+
except CatalogError as e: # noqa: F841
2626
raise EntityNameError("Unable to find name for app id: {}".format(i))
2727

2828
@staticmethod

feeds/entity/types/group.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ def get_names_from_ids(ids: List[str], token: str) -> Dict[str, str]:
3838
def validate_id(i: str, token: str) -> bool:
3939
try:
4040
return validate_group_id(i)
41-
except GroupsError as e:
41+
except GroupsError as e: # noqa: F841
4242
return False

feeds/entity/types/job.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ def get_names_from_ids(ids: List[str], token: str) -> Dict[str, str]:
3838
def validate_id(i: str, token: str) -> bool:
3939
try:
4040
validate_job_id(i)
41-
except JobError as e:
41+
except JobError as e: # noqa: F841
4242
return False

feeds/feeds/notification/notification_feed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _update_timeline(self) -> None:
3030
TODO: add metadata to timeline storage - type and verb, first.
3131
"""
3232
logging.getLogger(__name__).info(
33-
'Fetching timeline for '.format(self.user)
33+
'Fetching timeline for {}'.format(self.user)
3434
)
3535
self.timeline = self.timeline_storage.get_timeline()
3636

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[flake8]
2+
ignore = E252
23
max-line-length = 100
34
exclude =
45
feeds/biokbase/*

0 commit comments

Comments
 (0)