Skip to content

Commit

Permalink
fix long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Comeani committed Nov 11, 2024
1 parent 30859d6 commit 3d842ab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions apps/crc_proposal_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def app_logic(self, args: Namespace) -> None:

Slurm.check_slurm_account_exists(args.account)
keystone_session = KeystoneClient(url=KEYSTONE_URL)
keystone_session.login(username=os.environ["USER"], password=getpass("Please enter your CRCD login password:\n"))
keystone_session.login(username=os.environ["USER"],
password=getpass("Please enter your CRCD login password:\n"))

team_id = get_team_id(keystone_session, args.account)
alloc_requests = get_active_requests(keystone_session, team_id)
Expand All @@ -45,7 +46,9 @@ def app_logic(self, args: Namespace) -> None:
try:
alloc_requests = [get_most_recent_expired_request(keystone_session, team_id)]
except IndexError:
print("\033[91m\033[1mNo allocation information found. Either the group does not have any allocations, or you do not have permissions to view them. If you believe this to be a mistake, please submit a help ticket to the CRCD team. \033[0m \n")
print("\033[91m\033[1mNo allocation information found. Either the group does not have any allocations, "
"or you do not have permissions to view them. If you believe this to be a mistake, please submit a "
"help ticket to the CRCD team. \033[0m \n")
exit()

for request in alloc_requests:
Expand Down
4 changes: 3 additions & 1 deletion apps/crc_sus.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def app_logic(self, args: Namespace) -> None:
try:
alloc_requests = [get_most_recent_expired_request(keystone_session, group_id)]
except IndexError:
print("\033[91m\033[1mNo allocation information found. Either the group does not have any allocations, or you do not have permissions to view them. If you believe this to be a mistake, please submit a help ticket to the CRCD team. \033[0m \n")
print("\033[91m\033[1mNo allocation information found. Either the group does not have any allocations, "
"or you do not have permissions to view them. If you believe this to be a mistake, please submit "
"a help ticket to the CRCD team. \033[0m \n")
exit()

per_cluster_totals = get_per_cluster_totals(keystone_session, alloc_requests,
Expand Down
4 changes: 3 additions & 1 deletion apps/crc_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ def app_logic(self, args: Namespace) -> None:
try:
alloc_requests = [get_most_recent_expired_request(keystone_session, group_id)]
except IndexError:
print("\033[91m\033[1mNo allocation information found. Either the group does not have any allocations, or you do not have permissions to view them. If you believe this to be a mistake, please submit a help ticket to the CRCD team. \033[0m \n")
print("\033[91m\033[1mNo allocation information found. Either the group does not have any allocations, "
"or you do not have permissions to view them. If you believe this to be a mistake, please submit "
"a help ticket to the CRCD team. \033[0m \n")
exit()

clusters = get_enabled_cluster_ids(keystone_session)
Expand Down

0 comments on commit 3d842ab

Please sign in to comment.