diff --git a/Makefile b/Makefile index ac487a83..c2342922 100644 --- a/Makefile +++ b/Makefile @@ -156,10 +156,10 @@ doc: changelog doc-gen doc-mypy doc-coverage ######################################################################################## consistency: - find . -maxdepth 1 | grep -vE '(\.|\.git|\.copier-answers-sample\.yml|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {} - copier copy -r HEAD --data-file .copier-answers-sample.yml --data repo_host_type=gitlab.com -f . . + find . -maxdepth 1 | grep -vE '(\.|\.git|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {} + copier copy -r HEAD --data-file includes/copier-answers-sample.yml --data repo_host_type=gitlab.com -f . . rm -rf .copier-answers.yml - copier copy -r HEAD --data-file .copier-answers-sample.yml -f . . + copier copy -r HEAD --data-file includes/copier-answers-sample.yml -f . . rm -rf .copier-answers.yml ######################################################################################## diff --git a/.copier-answers-sample.yml b/includes/copier-answers-sample.yml similarity index 100% rename from .copier-answers-sample.yml rename to includes/copier-answers-sample.yml diff --git a/template/Makefile.jinja b/template/Makefile.jinja index 1ff1e84e..cbe60e55 100644 --- a/template/Makefile.jinja +++ b/template/Makefile.jinja @@ -159,10 +159,10 @@ doc: changelog doc-gen doc-mypy doc-coverage ######################################################################################## consistency: - find . -maxdepth 1 | grep -vE '(\.|\.git|\.copier-answers-sample\.yml|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {} - copier copy -r HEAD --data-file .copier-answers-sample.yml --data repo_host_type=gitlab.com -f . . + find . -maxdepth 1 | grep -vE '(\.|\.git|template|includes|copier\.yaml|pdm\.lock)$$' | xargs -I {} rm -r {} + copier copy -r HEAD --data-file includes/copier-answers-sample.yml --data repo_host_type=gitlab.com -f . . rm -rf .copier-answers.yml - copier copy -r HEAD --data-file .copier-answers-sample.yml -f . . + copier copy -r HEAD --data-file includes/copier-answers-sample.yml -f . . rm -rf .copier-answers.yml [% endif -%]