Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions scripts/new-exercise.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,11 @@ def create_download_py_file() -> None:
# TODO: conditionally add the git tagging only when requires_repo is True
with open("download.py", "w") as download_script_file:
download_script = """
from exercise_utils.cli import run_command
from exercise_utils.gitmastery import create_start_tag
__resources__ = {}
__resources__ = {} # Delete if no resources needed
def setup(verbose: bool = False):
create_start_tag(verbose)
pass
"""
download_script_file.write(textwrap.dedent(download_script).lstrip())

Expand Down
3 changes: 0 additions & 3 deletions scripts/new-hands-on.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ def create_download_py_file(config: HandsOnConfig) -> None:
f"{config.hands_on_name.replace('-', '_')}.py", "w"
) as download_script_file:
download_script = f"""
from exercise_utils.cli import run_command
from exercise_utils.gitmastery import create_start_tag

__requires_git__ = {config.requires_git}
__requires_github__ = {config.requires_github}

Expand Down
Loading