-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Remove docformatter
as a pre-commit
hook
#1074
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So - these changes all look fine... at the very least, the missing tests are a big review OOPS on my part - but I'm not sure I'm following what the actual problem is here. You seem to be suggesting there's a code-style issue... but I haven't seen any problems reported by pre-commit, and there's no pre-commit configuration change associated with this PR that might induce one.
Can you elaborate on how you're observing the problem that this PR fixes?
"text": True, | ||
"encoding": CONSOLE_ENCODING, | ||
"cwd": cwd_override, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was clearly having a good day when I approved this tests the first time around...
These are problematic in versions of linters we aren't currently using. The next release of |
As an example, here's what
Also, I wouldn't care so much about these RC releases except |
Ok - that makes sense. However, I wonder if the fix is to remove the We haven't enabled it on Toga and Rubicon because it chokes hard on formatting of ReST references (PyCQA/docformatter#124). At the end of the day, I don't know I've seen The 2 missing tests definitely need to be preserved, though :-) |
The primary role that @freakboy3742, before I get rid of |
I'm happy to live with an 88 character limit; if it's easy to reprocess the docstrings to get them out to an 88 char limit, then sure, but if it's more than a couple of minutes work, I don't think it matters that much if existing lines stay 9-16 chars short. |
It's simple; just add |
docformatter
as a pre-commit
hook
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit of a monster diff, but definitely worth it. The number of "barely over 79/72 char" lines that are cleaned up speaks for itself, IMHO.
FYI; I realized today that |
Agreed it's annoying, but not the end of the world. We'll just have to remember how to punctuate |
Small fixes to make these formatters happy(er)...Relevant issue: PyCQA/docformatter#154Removed
docformatter
as apre-commit
hook. By and large,black
serves the purpose of formatting docstrings.Because removing
docformatter
, I ran it one last time usingblack
's default docstring width of 88 characters.PR Checklist: