-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
refresh sage-fixdoctests using argparse #32331
Comments
New commits:
|
Branch: u/chapoton/32331 |
Commit: |
This comment has been minimized.
This comment has been minimized.
Reviewer: Travis Scrimshaw |
comment:4
One thing that could be considered a regression is that if I do something like
then I now get that |
comment:5
ok, I see. We could introduce an option Or stay with the principle that this is to fix just one single file ? |
comment:6
I think it is fine to handle just one file, which I believe is documented. It is more if someone gives it bad input (and it realizes this) that it doesn't change any files. However, this isn't really a big deal. I think the current branch is fine, but I wanted to see if there was an easy fix to prevent this from happening. |
comment:7
I do not see how to distinguish between the incorrect use
where the intention is to fix both a.py and b.py inplace ; and the correct use
where the intention is to write a corrected copy of a.py in b.py. In the second case, it could very well be that b.py is existing already, as in the first case. I think one can reasonably keep the current behaviour, which is indeed documented. |
comment:8
I agree that we cannot distinguish between improper use and proper use. What I was saying is if someone does improper use like
that |
Changed branch from u/chapoton/32331 to |
see also #31366 and #32332
also full flake8 cleanup of the modified file
CC: @tscrim @slel @kliem
Component: scripts
Author: Frédéric Chapoton
Branch/Commit:
7f4b0c0
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/32331
The text was updated successfully, but these errors were encountered: