blob: 9de8b54baeace0f5922434ae2adcaee7aac10de6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env bash
###
### typecheck a given target
###
### > typecheck.sh <target..>
###
### Uses repl.sh to provision the environment for target, then runs the
### appropriate typechecker for the given module.
###
help() {
sed -rn 's/^### ?//;T;p' "$0"
}
if [[ $# == 0 ]] || [[ "$1" == "-h" ]]; then
help
exit 1
fi
target="$1"
repl.sh --cmd "python -m mypy $target" "$target"
|