From abaa049f628a2af6525bbc92a34e51eadf19cf98 Mon Sep 17 00:00:00 2001 From: Vikram Goyal Date: Sun, 26 Oct 2025 15:13:56 +0800 Subject: [PATCH] Implement hands on hp-ignore-file --- hands_on/ignore_file.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 hands_on/ignore_file.py diff --git a/hands_on/ignore_file.py b/hands_on/ignore_file.py new file mode 100644 index 0000000..432487b --- /dev/null +++ b/hands_on/ignore_file.py @@ -0,0 +1,17 @@ +import os + +from exercise_utils.file import create_or_update_file +from exercise_utils.git import init + +__requires_git__ = True +__requires_github__ = False + + +def download(verbose: bool): + os.makedirs("stuff") + os.chdir("stuff") + init(verbose) + create_or_update_file("keep.txt", "good stuff") + create_or_update_file("temp.txt", "temp stuff") + create_or_update_file("file1.tmp", "more temp stuff") + create_or_update_file("file2.tmp", "even more temp stuff") \ No newline at end of file