-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VsCode support for pydoclint (#4241)
Since flake8 has been removed, VsCode no longer provided feedback during devleopment about new docstring errors. This PR add a new task called `pydoclint` that runs pydoclint in the background. Message from pydoclint are parsed with a regex and presented in the problems tab of VsCode by the task. VsCode does not have native support fdor running a task on save, so a new extension is added to support that. The flake8 extension is removed which was an oversight in #4235 Related #4236
- Loading branch information
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |