问题描述
当我在根目录中插入 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 (将#修改为@)