-
Notifications
You must be signed in to change notification settings - Fork 0
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
BUG: doesn't recognize docstring if closing bracket of function is black-style #27
Comments
The problem is with |
the problem is this bit:
|
instead of just |
actually, the easiest thing is probably just to use |
instead of
and then we also need to adjust |
Okay, I've used that in the |
Ah, there's also a problem with
it loses the last three parameters. |
... I think because the regex of |
I started work using the Python abstract syntax tree ( |
Hi, @peterprescott Sorry, for some reason my GitHub's watch setting was off and notifications didn't fly out and I was very late to notice. Will check the details when I get home today! |
I've merged and deployed v0.1.9! Possibly I will rewrite this lib with the |
Hi, I really like the package you've made, and our team is looking at using it to enforce well-written docstrings before new merges are made to the master branch of our codebase.
But we also use
black
to format all our code, and there's a frustrating incompatibility between the wayblack
formats a function with too many parameters to fit on a line, and the waynumdoclint
reads that function and its docstring.(Or at least for a class method, which is the specific example I'm looking at).
Specifically, we have this method:
and
black
makes the closing bracket of the function's parameters line up with the initialdef
keyword, whilenumdoclint
doesn't seem to recognize the docstring unless the closing bracket is indented like parameters on the line above, eg.Full example here: https://asciinema.org/a/477219?speed=3
If this could be fixed that would be much appreciated!
The text was updated successfully, but these errors were encountered: