diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 5c80298..7e4d643 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -1,19 +1,16 @@ import os from glob import glob -from itertools import chain from shutil import rmtree -REMOVE_PATHS = chain( - ( - "{% if not cookiecutter.use_bsd3_licence %}LICENSE{% endif %}", - "{% if not cookiecutter.add_precommit_workflows %}.github/workflows/pre-commit*.yml{% endif %}", - "{% if not cookiecutter.automerge_bot_prs %}.github/workflows/auto-merge.yml{% endif %}", - "{% if cookiecutter.packaging != 'pip-tools' %}requirements.txt{% endif %}", - "{% if cookiecutter.packaging != 'pip-tools' %}dev-requirements.txt{% endif %}", - "{% if cookiecutter.packaging != 'pip-tools' or not cookiecutter.mkdocs %}doc-requirements.txt{% endif %}", - "{% if not cookiecutter.mkdocs %}docs{% endif %}", - ), - glob("README.*.jinja"), +REMOVE_PATHS = ( + "{% if not cookiecutter.use_bsd3_licence %}LICENSE{% endif %}", + "{% if not cookiecutter.add_precommit_workflows %}.github/workflows/pre-commit*.yml{% endif %}", + "{% if not cookiecutter.automerge_bot_prs %}.github/workflows/auto-merge.yml{% endif %}", + "{% if cookiecutter.packaging != 'pip-tools' %}requirements.txt{% endif %}", + "{% if cookiecutter.packaging != 'pip-tools' %}dev-requirements.txt{% endif %}", + "{% if cookiecutter.packaging != 'pip-tools' or not cookiecutter.mkdocs %}doc-requirements.txt{% endif %}", + "{% if not cookiecutter.mkdocs %}docs{% endif %}", + "README.*.jinja", ) for path in REMOVE_PATHS: