Created
November 8, 2020 21:40
-
-
Save surjikal/654bac1a63a26d3fc77123f9482fe2ea to your computer and use it in GitHub Desktop.
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
{ | |
"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