File tree Expand file tree Collapse file tree 4 files changed +9
-17
lines changed
Expand file tree Collapse file tree 4 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 2525
2626 # Autoformat: Python code
2727- repo : https://github.com/psf/black-pre-commit-mirror
28- rev : 25.12 .0
28+ rev : 26.1 .0
2929 hooks :
3030 - id : black
3131
Original file line number Diff line number Diff line change @@ -220,19 +220,15 @@ def validate_authenticator_config(
220220 # If the authenticator class is github, then raise an error
221221 # if `Authenticator.allowed_users` is set
222222 if hub .authenticator == "github" and allowed_users and org_based_github_auth :
223- raise ValueError (
224- f"""
223+ raise ValueError (f"""
225224 Please unset `Authenticator.allowed_users` for { hub .spec ["name" ]} when GitHub Orgs/Teams is
226225 being used for auth so valid members are not refused access.
227- """
228- )
226+ """ )
229227 elif hub .authenticator == "dummy" and admin_users != []:
230- raise ValueError (
231- f"""
228+ raise ValueError (f"""
232229 For security reasons, please unset `Authenticator.admin_users` for { hub .spec ["name" ]} when the dummy authenticator is
233230 being used for authentication.
234- """
235- )
231+ """ )
236232
237233
238234@validate_app .command ()
Original file line number Diff line number Diff line change @@ -583,15 +583,13 @@ def onboard(
583583 )
584584 if password :
585585 print_colour (
586- textwrap .dedent (
587- f"""
586+ textwrap .dedent (f"""
588587 Hey { new_username } ! I have created an account for you in { profile } .
589588 The password was randomly generated and you must change it on first login.
590589
591590 Use the following link to log in: https://{ account_id } .signin.aws.amazon.com/console
592591 The password is: { password }
593- """
594- ),
592+ """ ),
595593 "yellow" ,
596594 )
597595 else :
Original file line number Diff line number Diff line change @@ -29,12 +29,10 @@ def _assert_file_exists(filepath):
2929 filepath (str): Absolute path to the file that is to be asserted for existence
3030 """
3131 if not os .path .isfile (filepath ):
32- raise FileNotFoundError (
33- f"""
32+ raise FileNotFoundError (f"""
3433 File Not Found at following location! Have you checked it's the correct path?
3534 { filepath }
36- """
37- )
35+ """ )
3836
3937
4038def persist_config_in_encrypted_file (encrypted_file , new_config ):
You can’t perform that action at this time.
0 commit comments