Skip to content

Commit 9c4d5c0

Browse files
authored
Merge pull request #7554 from 2i2c-org/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 52bc9c9 + 74aa8a5 commit 9c4d5c0

File tree

4 files changed

+9
-17
lines changed

4 files changed

+9
-17
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
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

deployer/commands/validate/config.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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()

deployer/dev_commands/exec/aws/aws_app.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

deployer/utils/file_acquisition.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

4038
def persist_config_in_encrypted_file(encrypted_file, new_config):

0 commit comments

Comments
 (0)