Last active
June 19, 2020 10:43
-
-
Save piotrgredowski/4e83ad57ad4c16d75b89abe7d01769b9 to your computer and use it in GitHub Desktop.
VSCode task for linting whole project with flake8
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
{ | |
"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