Skip to content

Commit

Permalink
add deps for pylint scan (#1613)
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <[email protected]>
  • Loading branch information
chensuyue authored Feb 19, 2024
1 parent 26b260e commit c4010bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .azure-pipelines/scripts/codeScan/pylint/pylint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pip install torch \
py-cpuinfo \
pyyaml \
pydantic \
protobuf

if [ "${scan_module}" = "neural_solution" ]; then
cd /neural-compressor
Expand All @@ -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
Expand Down

0 comments on commit c4010bc

Please sign in to comment.