-
Notifications
You must be signed in to change notification settings - Fork 130
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
Use force=True with copyfile #819
Conversation
Hello @gabalafou! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2024-11-03 20:33:35 UTC |
I manually checked this in a few different ways, but the general idea was to start with a repo where I could reproduce #818. Then:
|
Thanks for this PR! The test failures are unrelated, I'm trying to find out what to do about them in sphinx-doc/sphinx#13083. |
Thanks for the pointers! Re: test failures. That looks frustrating! |
src/nbsphinx/__init__.py
Outdated
sphinx.util.copyfile( | ||
os.path.join(app.env.srcdir, file), | ||
target, | ||
**overwrite) |
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.
Now that we have this as a function, you could get rid of the additional line above by directly calling the function here (and again below):
**overwrite) | |
**backwards_compat_overwrite()) |
What do you think about this?
Thanks! |
Fixes #818.