From b153ba122552f46c2e44dc7aea2e89562408cb50 Mon Sep 17 00:00:00 2001 From: Shaobo Hou Date: Thu, 25 Apr 2024 14:07:31 -0700 Subject: [PATCH] Disable pylint on test files until https://github.com/pylint-dev/pylint/issues/9185 is fixed. PiperOrigin-RevId: 628185025 --- test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 1477ca8..450cef5 100755 --- a/test.sh +++ b/test.sh @@ -37,9 +37,11 @@ flake8 `find tf2jax -name '*.py' | xargs` --count --select=E9,F63,F7,F82,E225,E2 PYLINT_ARGS="-efail -wfail" # Lint modules and tests separately. python -m pylint --rcfile=.pylintrc `find tf2jax -name '*.py' | grep -v 'test.py' | xargs` || pylint-exit $PYLINT_ARGS $? + # Disable `protected-access` warnings for tests. # Disable `unexpected-keyword-arg` and `no-value-for-parameter` error for tests due to false positives in tensorflow. -python -m pylint --rcfile=.pylintrc `find tf2jax -name '*_test.py' | xargs` -d W0212,E1123,E1120 || pylint-exit $PYLINT_ARGS $? +# TODO(shaobohou) Reenable after https://github.com/pylint-dev/pylint/issues/9185 is fixed. +# python -m pylint --rcfile=.pylintrc `find tf2jax -name '*_test.py' | xargs` -d W0212,E1123,E1120 || pylint-exit $PYLINT_ARGS $? # Build the package. python setup.py sdist