1. 通过使用pip install pylint

2 .pylint $(find -name "*.py") | tee pylint_result.txt,只寻找项目下面后缀名为.py的文件进行查找,并输出到.txt文件里面

 命令参数:

  -E,只输出Error级别的错误

  --disable,可以不检查某些错误,例如 E: 79,20: Module 'torch' has no 'from_numpy' member (no-member),这个no-member就是错误的名称,当使用--disable=no-member,就不会再显示这个错误了.

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2021-11-09
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
相关资源
相似解决方案