我试图对我的烧瓶应用程序运行pylint。 我生成了默认的pylint配置文件。
当我运行此命令时:
(newedgeuiv) Callams-MacBook-Pro:api callam$ pylint pylint --load-plugins pylint_flask --confidence="HIGH" api/
Pylint首先评估自己......如下所示:
************* Module pylint
C: 1, 0: Missing module docstring (missing-docstring)
************* Module pylint.__main__
C: 1, 0: Missing module docstring (missing-docstring)
************* Module pylint.config
C: 55, 0: Missing function docstring (missing-docstring)
C: 68, 0: Missing function docstring (missing-docstring)
C:263, 0: Missing class docstring (missing-docstring)
C:311, 0: Missing class docstring (missing-docstring)
C:615,12: Invalid argument name "p" (invalid-name)
C:615,12: Missing function docstring (missing-docstring)
C:633,68: Invalid variable name "fp" (invalid-name)
************* Module pylint.epylint
C:163, 0: Missing function docstring (missing-docstring)
************* Module pylint.lint
C:196, 4: Missing class docstring (missing-docstring)
C:1086,16: Invalid variable name "cb" (invalid-name)
C:1354, 0: Missing function docstring (missing-docstring)
************* Module pylint.testutils
C: 42, 0: Missing function docstring (missing-docstring)
如何确保pylint只检查我写的代码?
答案 0 :(得分:2)
你问过它。你的命令中有一个无关的 pylint ,你有 pylint pylint api /