Skip to content
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

Merged
merged 5 commits into from
Nov 10, 2024
Merged

Use force=True with copyfile #819

merged 5 commits into from
Nov 10, 2024

Conversation

gabalafou
Copy link
Contributor

Fixes #818.

@pep8speaks
Copy link

pep8speaks commented Oct 28, 2024

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

@gabalafou
Copy link
Contributor Author

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:

@mgeier
Copy link
Member

mgeier commented Oct 29, 2024

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.

src/nbsphinx/__init__.py Outdated Show resolved Hide resolved
src/nbsphinx/__init__.py Outdated Show resolved Hide resolved
@gabalafou
Copy link
Contributor Author

Thanks for the pointers!

Re: test failures. That looks frustrating!

sphinx.util.copyfile(
os.path.join(app.env.srcdir, file),
target,
**overwrite)
Copy link
Member

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):

Suggested change
**overwrite)
**backwards_compat_overwrite())

What do you think about this?

@mgeier mgeier merged commit 40d8cd4 into spatialaudio:master Nov 10, 2024
8 of 13 checks passed
@mgeier
Copy link
Member

mgeier commented Nov 10, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible bug: misc.copy_overwrite warning
3 participants