Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ignore installed flake8 plugin easily for one time?

Tags:

flake8

I have flake8-docstrings plugin installed and some others. But for some runs I want to ignore all the warnings of this plugin in some easy way: without creating a config file and without making a list of it's warning codes manually.

Is there any solution like:

flake8 . --ignore=Dxxx

or

flake8 . --disable-plugin=docstrings

?

like image 458
Yann Avatar asked Mar 10 '23 01:03

Yann


1 Answers

You're almost there

flake8 --extend-ignore=D .

Will ignore all violations reported that start with D and flake8-docstrings is the only plugin that reports codes starting with D.

If you have suggestions on how to improve this section of documentation that describes how to do it, please open an issue.

like image 172
Ian Stapleton Cordasco Avatar answered May 16 '23 07:05

Ian Stapleton Cordasco