From 58262c63726d228501b55ad41790cdf6f09544a4 Mon Sep 17 00:00:00 2001 From: "xiang song(charlie.song)" Date: Wed, 27 Sep 2023 11:32:31 -0700 Subject: [PATCH] Fix lint does not work with astroid==3.0 error. (#496) `python3 -m pip install --upgrade prospector pip` has a change to install astroid==3.0 (do not know why) which is not compatible with lint. Fix astroid version to 2.15.7 in this PR. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. Co-authored-by: Xiang Song --- .github/workflow_scripts/lint_check.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflow_scripts/lint_check.sh b/.github/workflow_scripts/lint_check.sh index 3eecaf93c3..f49c156926 100644 --- a/.github/workflow_scripts/lint_check.sh +++ b/.github/workflow_scripts/lint_check.sh @@ -4,6 +4,8 @@ cd ../../ set -ex python3 -m pip install --upgrade prospector pip +pip3 uninstall -y astroid +yes | pip3 install astroid==2.15.7 FORCE_CUDA=1 python3 -m pip install -e '.[test]' --no-build-isolation pylint --rcfile=./tests/lint/pylintrc ./python/graphstorm/data/*.py pylint --rcfile=./tests/lint/pylintrc ./python/graphstorm/dataloading/