Created
April 4, 2019 23:57
-
-
Save wrouesnel/49b353d5564879feae7163722f5e039b to your computer and use it in GitHub Desktop.
Wrapper script for mypy to allow clickable lines in Pycharm.
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
#!/bin/bash | |
# Parse the mypy output so we get full-filepaths | |
while read l ; do | |
relpath="$(echo $l | cut -d':' -f1)" | |
echo "$(readlink -f "$relpath"):$(echo $l | cut -d':' -f2-)" | |
done < <(mypy "$@") | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment