From c4010bc6c7da384195d508ac9bdd0d33afeb7900 Mon Sep 17 00:00:00 2001 From: "chen, suyue" Date: Mon, 19 Feb 2024 11:23:29 +0800 Subject: [PATCH] add deps for pylint scan (#1613) Signed-off-by: chensuyue --- .azure-pipelines/scripts/codeScan/pylint/pylint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.azure-pipelines/scripts/codeScan/pylint/pylint.sh b/.azure-pipelines/scripts/codeScan/pylint/pylint.sh index 9feb5d2051f..10ce227d32c 100644 --- a/.azure-pipelines/scripts/codeScan/pylint/pylint.sh +++ b/.azure-pipelines/scripts/codeScan/pylint/pylint.sh @@ -41,6 +41,7 @@ pip install torch \ py-cpuinfo \ pyyaml \ pydantic \ + protobuf if [ "${scan_module}" = "neural_solution" ]; then cd /neural-compressor @@ -58,6 +59,10 @@ elif [ "${scan_module}" = "neural_insights" ]; then fi +echo "[DEBUG] list pipdeptree..." +pip install pipdeptree +pipdeptree + python -m pylint -f json --disable=R,C,W,E1129 --enable=line-too-long --max-line-length=120 --extension-pkg-whitelist=numpy --ignored-classes=TensorProto,NodeProto \ --ignored-modules=tensorflow,keras,torch,torch.quantization,torch.tensor,torchvision,fairseq,mxnet,onnx,onnxruntime,intel_extension_for_pytorch,intel_extension_for_tensorflow,torchinfo,horovod,transformers \ /neural-compressor/${scan_module} > $log_dir/pylint.json