Skip to content

Instantly share code, notes, and snippets.

@surjikal
Created November 8, 2020 21:40
Show Gist options
  • Save surjikal/654bac1a63a26d3fc77123f9482fe2ea to your computer and use it in GitHub Desktop.
Save surjikal/654bac1a63a26d3fc77123f9482fe2ea to your computer and use it in GitHub Desktop.
{
"type": "shell",
"label": "python: futurize current file (dry run, vscode diff)",
"group": "build",
"command": "pipenv",
"args": [
"run",
"env",
"TMPDIR=$(mktemp -d)",
"futurize",
"--nobackups",
"--both-stages",
"--no-diffs",
"${relativeFile}",
"--output-dir=${env:TMPDIR}",
"--write",
";",
"${execPath}",
"--diff",
"${workspaceFolder}/${relativeFile}",
"${env:TMPDIR}${fileBasename}"
],
"options": {
"cwd": "${workspaceFolder}"
},
"isBackground": true,
"problemMatcher": []
},
{
"type": "shell",
"label": "python: futurize current file",
"group": "build",
"command": "pipenv",
"args": [
"run",
"futurize",
"--both-stages",
"-n",
"-w",
"${relativeFile}"
],
"options": {
"cwd": "${workspaceFolder}"
},
"isBackground": true,
"problemMatcher": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment