autogen/scripts/pre-commit-mypy-run.sh

16 lines
272 B
Bash
Executable File

#!/usr/bin/env bash
# taken from: https://jaredkhan.com/blog/mypy-pre-commit
# A script for running mypy,
# with all its dependencies installed.
set -o errexit
# Change directory to the project root directory.
cd "$(dirname "$0")"/..
pip install -q -e .[types]
mypy