6

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?

maslak
  • 1,115
  • 3
  • 8
  • 22

1 Answers1

6

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
Ian Stapleton Cordasco
  • 26,944
  • 4
  • 67
  • 72