Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有测试和 conftest 文件的 python 项目,几天前 - 不知从何而来 - Pycharm 决定它不是 python 脚本:
结果是我无法调试,无法跳转到源码,没有检查和分机。
此外 - 如果我将名称更改为不同的名称,突然之间它又是一个 python 脚本:
为什么会这样?谁能告诉?我搜索了提及的设置,conftest但一无所获。我该如何解决?
conftest
conftest.py分配了错误的文件类型,请检查设置 | 编辑 | 文件类型 | 文本并conftest.py从“文件名模式”中删除。
conftest.py