get rid of PEP8 indentation warning in docstrings

Answered

Hi,

 

I'm using PyCharm Professional (2016.3.1) for a while and having very good experience with this IDE, it's great. The only thing that bother me now is that the PEP8 verifier warning on all function docstrings when it's more than one line string with this warning: "PEP8 indentation contains tabs".

I know that the prefer way is to use spaces instead of tabs (When writing with PEP8 style) but all developers that work with me use tabs (and all the history of the project wrote the same way).

Is there any way to make the verifier ignore those docstrings?

 

Thanks a lot,

Hanan. 

0
2 comments

It's a known problem https://youtrack.jetbrains.com/issue/PY-21066. As a temporary workaround you can suppress this warning with the quickfix(Alt+Enter) on a highlighted indent "Ignore errors like this". It adds W191 to the blacklist of warnings not reported by pycodestyle.py (former pep8.py).

1
Avatar
Permanently deleted user

Thanks Anna! I was afraid that doing it will make Pycharm ignore all PEP8 warnings 

0

Please sign in to leave a comment.