Skip to content

Commit 4c4d54c

Browse files
author
github-actions
committed
[github-actions] Apply auto-formatting using ruff
1 parent 95d6c7e commit 4c4d54c

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

exercise_utils/github_cli.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88

99
def fork_repo(
10-
repository_name: str, fork_name: str, verbose: bool, default_branch_only: bool = True
10+
repository_name: str,
11+
fork_name: str,
12+
verbose: bool,
13+
default_branch_only: bool = True,
1114
) -> None:
1215
"""
1316
Creates a fork of a repository.
@@ -17,7 +20,7 @@ def fork_repo(
1720
if default_branch_only:
1821
command.append("--default-branch-only")
1922
command.extend(["--fork-name", fork_name])
20-
23+
2124
run(command, verbose)
2225

2326

hands_on/remote_branch_push.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
REPO_OWNER = "git-mastery"
1414
FORK_NAME = "gitmastery-samplerepo-company"
1515

16+
1617
def download(verbose: bool):
1718
username = get_github_username(verbose)
1819

1920
if not has_fork(REPO_NAME, REPO_OWNER, username, verbose):
20-
fork_repo(
21-
f"{REPO_OWNER}/{REPO_NAME}", FORK_NAME, verbose, False
22-
)
21+
fork_repo(f"{REPO_OWNER}/{REPO_NAME}", FORK_NAME, verbose, False)
2322

2423
existing_name = get_fork_name(REPO_NAME, REPO_OWNER, username, verbose)
25-
clone_repo_with_git(f"https://github.com/{username}/{existing_name}", verbose, FORK_NAME)
24+
clone_repo_with_git(
25+
f"https://github.com/{username}/{existing_name}", verbose, FORK_NAME
26+
)

0 commit comments

Comments
 (0)