Ignore whole folders for particular flake8-docstrings error

Viewed 698

Is there a way to ignore errors which occurs in specified directory?

For instance, I have D103 Missing docstring in public function error in every file inside /foo directory and I would like to omit the error.

Is it possible to set such setting in setup.cfg file?

1 Answers

As of Flake8 3.7.0 you can do this on a per-file basis. So for you this would look like:

per-file-ignores =
    foo/:D103
Related