-
Notifications
You must be signed in to change notification settings - Fork 95
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
dry run seems to always print that a file would be changed #152
Comments
Can you clarify what you mean? What are "all files" here? |
Yes, sorry for being unclear. every file that is passed to nbstripout will print. this happens even if a strip a file and then right after that run a dry run. my expectation is that only files that would have been changed if a "wet run" would have been used - would be printed |
OK, I see what you mean. It is a fair point, but not trivial to support unfortunately: it would mean checking if applying I'll add it as a feature request to the backlog. |
Thanks. Just so i understand - what is the current value of the dry-run option? |
It will tell you which files are in scope / would be touched. I agree that your definition is more useful. |
Could this be related to this other issue? #160 |
@joaonc only tangentially. This request is about turning |
@alonme Would you be interested in implementing this? |
I am facing trouble here, I'll want to give this a try at implementing this @kynan |
@swateek sure! You'd need to change this line to not overwrite the notebook and then in the following |
let me try this out! |
I noticed that when using dry_run, all files are always printed as if they would be changed.
Looking at the code briefly, it does seem like this is what happens.
The text was updated successfully, but these errors were encountered: