Skip to content

Instantly share code, notes, and snippets.

@kanghyojun
Last active December 28, 2020 07:31
Show Gist options
  • Save kanghyojun/aa1c0f8d8db8f0cc95ee691063545087 to your computer and use it in GitHub Desktop.
Save kanghyojun/aa1c0f8d8db8f0cc95ee691063545087 to your computer and use it in GitHub Desktop.
diagnostic-languageserver for flake8
{
"diagnostic-languageserver.filetypes": {
"python": "flake8"
},
"diagnostic-languageserver.linters": {
"flake8": {
"sourceName": "flake8",
"command": "flake8",
"args": [
"%file"
],
"formatPattern": [
"^(.+\\.py):(\\d+):(\\d+): (I|W|E|F)\\d+ (.+)$",
{
"line": 2,
"column": 3,
"security": 4,
"message": [5]
}
],
"rootPatterns": ["pyproject.toml", "setup.py", "setup.cfg", ".git"],
"securities": {
"E": "error",
"W": "warning",
"I": "info",
"F": "error"
},
"requiredFiles": [
".flake8",
"setup.cfg"
],
"offsetColumn": 0,
"formatLines": 1
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment