diff --git a/{{cookiecutter.project_slug}}/docs/cleanup.py b/{{cookiecutter.project_slug}}/docs/cleanup.py index c83aa64a034a0baab3b1aef52ee61421cc32190f..3a4508d859234544bea35b1008e3c8e4f73d7cc0 100644 --- a/{{cookiecutter.project_slug}}/docs/cleanup.py +++ b/{{cookiecutter.project_slug}}/docs/cleanup.py @@ -15,8 +15,9 @@ if not os.path.exists(clean_dir): for file_name in os.listdir(clean_dir): file = os.path.join(clean_dir, file_name) - match file_name: - case "index.rst": continue - case _: - print(f"Removing.. {file}") - os.remove(file) + + if file_name == "index.rst": + continue + + print(f"Removing.. {file}") + os.remove(file)