Created
May 29, 2019 21:33
A wrapper for correcting vscode-python extension invokes mypy incorrect problem.
This file contains hidden or 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
#!/bin/bash | |
# Author: Xiao Liang <https://github.com/yxliang01> | |
# Should invoke this in the root package which is also supposed to be the VS Code workspace root | |
args=( "$@" ) | |
args[-1]=${args[-1]#"$(pwd)/"} | |
# For debugging | |
# echo ${args[@]} > /tmp/mypy-test.log | |
.tox/dev/bin/python -m mypy ${args[@]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment