-
Notifications
You must be signed in to change notification settings - Fork 18
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
List of missing arguments not displayed in D417 Missing argument description error #14
Comments
actually it seems to be working when using directly pydocstyle, but not when done through flake8 so it seems like it is a flake8 problem instead. |
Interesting. This should probably be opened against |
I transferred it |
it looks like two ideas there:
|
I am not sure to understand why option 1 would be fragile. What do you think could break this solution? If flake8 does not handle error messages with ":" then it seems sensible to replace these, at the cost of denaturing some error messages. Alternatively, could flake8 be modified to handle error messages with ":" ? |
pydocstyle has changed the format twice now looking at the git history of changing flake8 is kinda out of the question -- a single plugin doing it wrong shouldn't loosen the framework |
"a single plugin doing it wrong" not sure to have enough context to understand why using a ":" in the error message is wrong. Is it wrong independently of flake8's requirements? If so, is it documented anywhere that error messages should not use ":" outside the flake8 context? Or is that wrong only in the sense that it is not supported by flake8 and no other flake8 plug-in do that ? If so, why would that be a negative thing to loosen flake8 requirement ? it seems to me like it would then be an improvement of flake8 to support it, and could potentially benefit other plugins. |
yes, the documented message format is code then space then message changing that would break lots of things |
If the format is |
In my case, pydocstyle reports
While flake8 ...
|
@s0undt3ch I appreciate you trying to help but we've already come to that above and have a reason why |
Is the |
We should create(yet another) open standard for linter messages 🤣 |
I mean there is flake8's standard which is |
When I get D417 errors the list of missing argument is not displayed in the error message.
It would be much more convenient to have the list of missing argument displayed in the error message.
Looking at the code this list get generated here
but does not end up being displayed in the final error message.
example:
yields
D417 Missing argument descriptions in the docstring
while I would like to get
D417 Missing argument descriptions in the docstring for argument b
The text was updated successfully, but these errors were encountered: