PyCQA / pydocstyle

docstring style checker
http://pydocstyle.org
MIT License
1.11k stars 189 forks source link

[Feature Request] Support error prefixes in `# noqa` comments #487

Open plinss opened 4 years ago

plinss commented 4 years ago

flake8 supports error prefixes in # noqa comments, e.g. # noqa: D4 will block all D4xx errors, where pydocstyle requires exact matches, e.g. # noqa: D400, D401, etc..

I don't have a need for this as I primarily use flake8, but mentioning it as I noticed the discrepancy in implementations. Feel free to close as "won't fix".

sigmavirus24 commented 4 years ago

Again, I don't expect pydocstyle to support every nuanced behaviour of Flake8 unless Flake8 breaks these things out into libraries that pydocstyle can reuse. And that's not likely to happen for something like this