Skip to content

Commit c4010bc

Browse files
authored
add deps for pylint scan (#1613)
Signed-off-by: chensuyue <suyue.chen@intel.com>
1 parent 26b260e commit c4010bc

File tree

1 file changed

+5
-0
lines changed
  • .azure-pipelines/scripts/codeScan/pylint

1 file changed

+5
-0
lines changed

.azure-pipelines/scripts/codeScan/pylint/pylint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pip install torch \
4141
py-cpuinfo \
4242
pyyaml \
4343
pydantic \
44+
protobuf
4445

4546
if [ "${scan_module}" = "neural_solution" ]; then
4647
cd /neural-compressor
@@ -58,6 +59,10 @@ elif [ "${scan_module}" = "neural_insights" ]; then
5859

5960
fi
6061

62+
echo "[DEBUG] list pipdeptree..."
63+
pip install pipdeptree
64+
pipdeptree
65+
6166
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 \
6267
--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 \
6368
/neural-compressor/${scan_module} > $log_dir/pylint.json

0 commit comments

Comments
 (0)