diff --git a/.vscode/extensions.json b/.vscode/extensions.json index cee12411c..81213be42 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -2,10 +2,10 @@ "recommendations": [ "charliermarsh.ruff", "esbenp.prettier-vscode", + "gruntfuggly.triggertaskonsave", "markis.code-coverage", "ms-python.black-formatter", "ms-python.debugpy", - "ms-python.flake8", "ms-python.mypy-type-checker", "ms-python.pylint", "ms-python.python", diff --git a/.vscode/settings.json b/.vscode/settings.json index d80345ac4..c9a2baa3f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -18,5 +18,8 @@ "pylint.importStrategy": "fromEnvironment", "python.testing.pytestArgs": ["tests"], "python.testing.pytestEnabled": true, - "python.testing.unittestEnabled": false + "python.testing.unittestEnabled": false, + "triggerTaskOnSave.tasks": { + "pydoclint": ["*.py"] + } } diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..494f1747c --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,31 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "pydoclint", + "type": "shell", + "command": "pydoclint", + "args": ["."], + "presentation": { + "reveal": "never" + }, + "problemMatcher": { + "owner": "pydoclint", + "fileLocation": ["relative", "${workspaceFolder}"], + "pattern": { + "regexp": "^(.*?):(\\d+):\\s(.*?):\\s(.*)$", + "file": 1, + "line": 2, + "code": 3, + "message": 4 + } + }, + "group": { + "kind": "none", + "isDefault": true + } + } + ] +}