Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 358
Sami Soheili Avatar asked Sep 13 '17 08:09

Sami Soheili


1 Answers

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."""

like image 62
Rakesh Kumar Avatar answered Oct 02 '22 16:10

Rakesh Kumar