diff --git a/build-support/githooks/pre-commit b/build-support/githooks/pre-commit index f042cb1ff50..cc7fbe026a0 100755 --- a/build-support/githooks/pre-commit +++ b/build-support/githooks/pre-commit @@ -60,7 +60,7 @@ if git rev-parse --verify "${MERGE_BASE}" &>/dev/null; then # TODO: add a test case for this while including a pexrc file, as python checkstyle currently fails # quite often with a pexrc available. echo "* Checking lint" - ./pants --whitelist-tag-name=type_checked --exclude-target-regexp='testprojects/.*' --changed-parent="${MERGE_BASE}" lint || exit 1 + ./pants --lint-mypy-whitelist-tag-name=type_checked --exclude-target-regexp='testprojects/.*' --changed-parent="${MERGE_BASE}" lint || exit 1 if git diff "${MERGE_BASE}" --name-only | grep '\.rs$' > /dev/null; then echo "* Checking formatting of rust files" diff --git a/pants.ini b/pants.ini index 48f9b5c7ab0..2a01dfb9c6c 100644 --- a/pants.ini +++ b/pants.ini @@ -303,6 +303,7 @@ skip: True skip: True [lint.mypy] +whitelist_tag_name = type_checked config_file: build-support/mypy/mypy.ini [scala]