diff --git a/tensorflow/tools/ci_build/ci_sanity.sh b/tensorflow/tools/ci_build/ci_sanity.sh index 36be875c2d4..fca6df53dbb 100755 --- a/tensorflow/tools/ci_build/ci_sanity.sh +++ b/tensorflow/tools/ci_build/ci_sanity.sh @@ -114,7 +114,8 @@ do_pylint() { "^tensorflow/python/kernel_tests/constant_op_eager_test.py.*\[E0303.*invalid-length-returned "\ "^tensorflow/python/keras/utils/data_utils.py.*\[E1102.*not-callable "\ "^tensorflow/python/autograph/.*_py3_test\.py.*\[E0001.*syntax-error "\ -"^tensorflow/python/keras/preprocessing/image\.py.*\[E0240.*Inconsistent method resolution " +"^tensorflow/python/keras/preprocessing/image\.py.*\[E0240.*Inconsistent method resolution "\ +"^tensorflow/\.py.*\[C0326.*bad-whitespace.*No space allowed around keyword argument assignment " echo "ERROR_ALLOWLIST=\"${ERROR_ALLOWLIST}\"" @@ -215,7 +216,7 @@ do_pylint() { IS_ALLOWLISTED=0 for WL_REGEX in ${ERROR_ALLOWLIST}; do if echo ${LINE} | grep -q "${WL_REGEX}"; then - echo "Found a allowlisted error:" + echo "Found an allowlisted error:" echo " ${LINE}" IS_ALLOWLISTED=1 fi diff --git a/tensorflow/tools/ci_build/pylintrc b/tensorflow/tools/ci_build/pylintrc index 5d65c9644c7..1b24859e88e 100644 --- a/tensorflow/tools/ci_build/pylintrc +++ b/tensorflow/tools/ci_build/pylintrc @@ -38,7 +38,7 @@ enable=indexing-exception,old-raise-syntax # --enable=similarities". If you want to run only the classes checker, but have # no Warning level messages displayed, use"--disable=all --enable=classes # --disable=W" -disable=design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,no-member,no-name-in-module,import-error,unsubscriptable-object,unbalanced-tuple-unpacking,undefined-variable,not-context-manager +disable=design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,no-member,no-name-in-module,import-error,unsubscriptable-object,unbalanced-tuple-unpacking,undefined-variable,not-context-manager,invalid-sequence-index # Set the cache size for astng objects.