-
Notifications
You must be signed in to change notification settings - Fork 80
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
duplicate content after running docformatter #263
Comments
Another example: def f() -> None:
"""xx.
:param a: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb s3://cccc.
""" Running --- before//tmp/docformatter-duplicate.py
+++ after//tmp/docformatter-duplicate.py
@@ -1,5 +1,8 @@
def f() -> None:
"""xx.
- :param b: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb s3://cccc.
+ :param b: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+ s3://cccc.
+ :param b: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+ s3://cccc.
""" Things that seem to have to be true or this doesn't reproduce:
|
Using a git bisect, it looks like this started in cb7bf8d Digging into it, I think I see what's going on:
The problem arises in step 2. There's a check to exclude urls that occur inside fields. But it doesn't exclude this URL. I think that's an expectation mismatch with the return of I think that means that we could, in theory, simplify |
Hey,
I've updated
docformatter
to 1.7.5 and discovered a strange behavior.Given this minimal example:
This is what it looks like after running
docformatter
:Docformatter is running via
pre-commit
with this config:fin swimmer
The text was updated successfully, but these errors were encountered: