New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
D401 behaves differently in flake8-docstrings and pydocstyle #47
Comments
Yeah, I suspect we need to add a similarly named option with the default set to the config constant pydocstyle created. Otherwise the internal API defaults are None and that's not what is desired. |
@NMertsch would you want to send a PR? I'd be happy to review and merge it |
Thank you for pointing at the potential cause, I'll give it a try in the next days. |
I'm able to fix it. This option was introduced to pydocstyle in version 6.2.0 (Jan. 2nd 2023). Shall I update the minimum pydocstyle version in the requirements, or implement it in a backwards-compatible way? |
If you can do it a backwards compatible fashion that would be ideal, I think with a note as to when that can be dropped |
Also feel free to send a PR early for feedback so we can iterate more quickly to a solution |
Thank you @sigmavirus24 for merging #48, this issue is fixed now. Can you please release the new version to PyPI? If there is something I can do to help, please let me know. |
Since PyCQA/pydocstyle#546, properties are exempt from D401 ("First line should be in imperative mood").
This plugin doesn't seem to reflect this.
Code:
Versions and output:
The text was updated successfully, but these errors were encountered: