How can I fix `flake8 D100 — Missing docstring` error in atom editor

Sami Soheili picture Sami Soheili · Sep 13, 2017 · Viewed 7k times · Source

I installed atom for python programming and also installed Linter and flake8 packages but everything I write in text editor I get this warning :

D100 — Missing docstring in public module

I already tried

 pip uninstall flake8-docstrings
 pip install Flake8-pep257

How can I fix this warning ?

Answer

Rakesh Kumar picture Rakesh Kumar · May 19, 2018

Its nothing but a comment like this on the top of your program. According to Python Documentation it should be there before every function and program. Here is a simple docstring code

"""Return the pathname of the KOS root directory."""