From 831611a8e33499dfeae40bfdbc1a4cc9e922e6af Mon Sep 17 00:00:00 2001 From: to-bar <46519524+to-bar@users.noreply.github.com> Date: Fri, 18 Mar 2022 15:07:03 +0000 Subject: [PATCH] Add "Pylint download-requirements" task --- .vscode/tasks.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1931cf5efa..d7d293dc4e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -22,7 +22,7 @@ ], }, { - "label": "Pylint junit", + "label": "Pylint CLI junit", "command": "pylint --rcfile .pylintrc ./cli ./tests --output ${workspaceFolder}/test_results/pylint_results.xml", "dependsOn": [ "Ensure test_results directory" @@ -30,10 +30,24 @@ "group": "test", }, { - "label": "Pylint terminal", + "label": "Pylint CLI terminal", "command": "pylint --rcfile .pylintrc ./cli ./tests --output-format text", "group": "test", }, + { + "label": "Pylint download-requirements", + "command": "pylint", + "args": [ + "--rcfile", + ".pylintrc", + "--output-format", + "text", + "./ansible/playbooks/roles/repository/files/download-requirements/download-requirements.py", + "./ansible/playbooks/roles/repository/files/download-requirements/src", + "./ansible/playbooks/roles/repository/files/download-requirements/tests", + ], + "group": "test", + }, { "label": "Ansible-lint junit", "command": "ansible-lint --nocolor -q -c .ansible-lint -p ${workspaceFolder}/ansible/playbooks/*.yml > ${workspaceFolder}/test_results/ansiblelint_results.txt ; ansible-lint-to-junit-xml ${workspaceFolder}/test_results/ansiblelint_results.txt > ${workspaceFolder}/test_results/ansiblelint_results.xml",