Skip to content

Instantly share code, notes, and snippets.

@piotrgredowski
Last active June 19, 2020 10:43
Show Gist options
  • Save piotrgredowski/4e83ad57ad4c16d75b89abe7d01769b9 to your computer and use it in GitHub Desktop.
Save piotrgredowski/4e83ad57ad4c16d75b89abe7d01769b9 to your computer and use it in GitHub Desktop.
VSCode task for linting whole project with flake8
{
"version": "2.0.0",
"tasks": [
{
"label": "Run flake8 on whole project",
"type": "shell",
"command": "${config:python.pythonPath}",
"args": [
"-m",
"flake8",
"--config",
".flake8",
"."
],
"presentation": {
"echo": false,
"reveal": "never",
"focus": false,
"panel": "new",
"showReuseMessage": false,
"clear": false
},
"problemMatcher": [
{
"owner": "python",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4,
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment