如何解决工具 pylint 无法运行引发异常Python
当我在根目录中插入 init.py 文件时,我在静态分析中遇到错误。如果我删除 init.py 文件错误已解决,但我需要 init.py 文件。
我的项目结构是: 接口: 应用: 模块1 模块2 初始化.py
重现行为的步骤:
Go to the apps directory
Call prospector the following properties :
strictness: veryhigh
output-format: pylint
autodetect: false
doc-warnings: true
member-warnings: true
test-warnings: false
max-line-length: 120
ignore-paths:
documentation
requirements
tests
migrations
build-env
uses:
django
vulture:
run: false
bandit:
run: true
mccabe:
options:
max-complexity: 10
pep8:
full: true
disable:
E203
pep257:
disable:
D104
D203
D212
pylint:
full: true
disable:
relative-beyond-top-level
import-outside-toplevel
options:
good-names:
c
e
ignore: "migrations|tests"
Error occured :
Tool pylint failed to run (exception was raised) error in static analysis.
预期行为 Pylint 应该会成功运行。
环境:
OS: Windows 10
Pylint version 2.5.2
Prospector version 1.3.0
Python version 3.8.5
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。