python - 如何修复原子编辑器中的 `flake8 D100 — Missing docstring` 错误

标签 python atom-editor flake8

我为python编程安装了atom 并且还安装了 Linter 和 flake8 包,但我在文本编辑器中编写的所有内容都会收到此警告:

D100 — Missing docstring in public module

我已经试过了

 pip uninstall flake8-docstrings
 pip install Flake8-pep257

如何修复此警告?

最佳答案

它不过是在程序顶部的这样一条注释。根据 Python 文档,它应该在每个函数和程序之前。这是一个简单的文档字符串代码

"""返回KOS根目录的路径名。"""

关于python - 如何修复原子编辑器中的 `flake8 D100 — Missing docstring` 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46192576/

相关文章:

python - Flake8:忽略整个文件的特定警告

python - Python 程序可以通过 Atom 文本编辑器运行吗?

python - 将标签分配给Django ORM多对多关系中的对象

python - Beautifulsoup - 抓取网页 - 动态加载页面

python - 通过标识而不是相等从 python 列表中删除元素

atom-editor - 让自定义按键在 Atom 中插入一个 Unicode 字符

code-snippets - Atom编辑器:多个片段

python - S101 为 python 测试检测到断言的使用

python - flake8 - 忽略函数的警告

python - NumPy random.shuffle 函数