You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to find a good way to reformat python code (I'm sure there is a package out there that will reformat code to stay within a specified length. I already know how to use a textwrapping function in the commit_message_creator function, which will handle regular text just fine. The issue will be formatting python code (and I'm sure it's been done).
I'll play with a few options for detecting random (search for rand, then expand it to np.rand or other things till it captures exactly what's needed.)
Update reviewtools.py with two new functions to do this.
Acceptance Criteria:
Random output is appropriately tagged in reviewtools.py
Lines longer than 79 characters are appropriately split into shorter lines, resulting in still valid python code.
Description:
The current
reviewtools.pyfileprocess_text_blockdoes not check forThis causes two problems:
spin lint, the generated examples will fail if longer than 79 characters (thanks @jud-sdev for help in Review: AI Gen Examples for ma.dot, ma.cumsum and ma.prod #87).python tools/refguide_check --doctests, random output will fail (thanks @ogidig5 for help in Review: AI Gen Examples fornumpy.linalg.svdvalsfunction #86).I'd like to automate much of this.
reviewtools.pywith two new functions to do this.Acceptance Criteria:
reviewtools.py