From f23f55643dcc614399c60ce216d044a03f94d967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arapiles?= Date: Thu, 22 Sep 2022 18:14:06 +0200 Subject: [PATCH] Add yamllint to dependendecies because is mandatory for lint step. #92 Fix examples tags to achieve meta.yml galaxy_tags requisites. --- cookiecutter.json | 7 ++++--- test.sh | 2 +- {{cookiecutter.app_name}}_role/test-requirements.txt | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cookiecutter.json b/cookiecutter.json index 8a5240c..6013775 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -12,10 +12,11 @@ "python_docker_version": "5.0.0", "molecule_docker_version": "0.2.4", "ansible_lint_version":"5.3.2", + "yamllint_version": "1.28.0", "license":"Apache 2.0", - "galaxy_tag_1":"example_tag1", - "galaxy_tag_2":"example_tag2", - "galaxy_tag_3":"example_tag3", + "galaxy_tag_1":"tag1", + "galaxy_tag_2":"tag2", + "galaxy_tag_3":"tag3", "debian_bullseye_support":["True", "False"], "debian_buster_support":["True", "False"], "has_service":["True", "False"], diff --git a/test.sh b/test.sh index 4ab9398..fc4aa95 100755 --- a/test.sh +++ b/test.sh @@ -17,7 +17,7 @@ printf "cookiecutter==1.7.2\nJinja2==2.11.2" > requirements.txt && pipenv instal has_files="False" \ has_handlers="False" \ has_templates="False" \ - documentation_URL="https://cli.github.com/manual/" && rm Pipfile* requirements.txt + documentation_URL="https://cli.github.com/manual/" && rm Pipfile* requirements.txt && rm -rf requirements.txt ( # Adjust the role to test diff --git a/{{cookiecutter.app_name}}_role/test-requirements.txt b/{{cookiecutter.app_name}}_role/test-requirements.txt index fd772c1..c0440ff 100644 --- a/{{cookiecutter.app_name}}_role/test-requirements.txt +++ b/{{cookiecutter.app_name}}_role/test-requirements.txt @@ -2,4 +2,5 @@ ansible=={{ cookiecutter.ansible_version }} molecule=={{ cookiecutter.molecule_version }} docker=={{ cookiecutter.python_docker_version }} molecule-docker=={{ cookiecutter.molecule_docker_version }} -ansible-lint=={{ cookiecutter.ansible_lint_version }} \ No newline at end of file +ansible-lint=={{ cookiecutter.ansible_lint_version }} +yamllint=={{ cookiecutter.yamllint_version }} \ No newline at end of file