Ignore whole folders for particular flake8-docstrings error
Asked Answered
I

1

7

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?

Interinsurance answered 28/6, 2019 at 18:57 Comment(3)
Do you mind ignoring this error globally?Kurth
Ooh! Your question's answered here! Just use globs.Kurth
Possible duplicate of Flake8: Ignore specific warning for entire fileKurth
P
7

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
Pyrogenous answered 29/6, 2019 at 14:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.