From fc9198b1f2d64ad87e031c7fac2a918a0f4ccc72 Mon Sep 17 00:00:00 2001 From: Muhammad Rehan Date: Tue, 24 Dec 2024 02:42:39 +0500 Subject: [PATCH] Update uv command to create project --- .github/workflows/setup-project.yaml | 2 +- hooks/post_gen_project.py | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/setup-project.yaml b/.github/workflows/setup-project.yaml index fc7389b1..3affd2c0 100644 --- a/.github/workflows/setup-project.yaml +++ b/.github/workflows/setup-project.yaml @@ -34,4 +34,4 @@ jobs: git config --global user.name "CI CD Setup Project" REPO_URL="https://github.com/rehan892/test-scaf-templates/" - $HOME/.local/bin/scaf myproject --no-input $REPO_URL + $HOME/.local/bin/scaf myproject --no-input --checkout main $REPO_URL diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 2dbe6d57..197a9f6d 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -166,17 +166,17 @@ def set_challenge_settings_in_config_map(): set_flag( local_configmap_path, "__CHALLENGE_SESSION_ID__", - value=challenge_config['session_id'] + value=challenge_config["session_id"], ) set_flag( local_configmap_path, "__CHALLENGE_JWT_TOKEN__", - value=challenge_config['access_token'] + value=challenge_config["access_token"], ) set_flag( local_configmap_path, "__CHALLENGE_BASE_URL__", - value=challenge_config['base_url'] + value=challenge_config["base_url"], ) @@ -222,7 +222,9 @@ def remove_graphql_files(): def remove_challenge_files(): - challenge_dir = os.path.join("backend", "{{ cookiecutter.project_slug }}", "challenge") + challenge_dir = os.path.join( + "backend", "{{ cookiecutter.project_slug }}", "challenge" + ) shutil.rmtree(challenge_dir)