-
Notifications
You must be signed in to change notification settings - Fork 28
Make dev_tools/nbfmt more careful about tensorflow-docs #219
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c7a2b9b
Make check/nbfmt more careful about tensorflow-docs
mhucka a73b741
Merge branch 'main' into mh-fix-nbfmt
mhucka 1de394f
Merge branch 'main' into mh-fix-nbfmt
mhucka a176f9e
Merge branch 'main' into mh-fix-nbfmt
mhucka 85346ae
Merge branch 'main' into mh-fix-nbfmt
mhucka ae433be
Merge branch 'main' into mh-fix-nbfmt
mhucka 2ceac1d
Merge branch 'main' into mh-fix-nbfmt
mhucka 8128dbc
Merge branch 'main' into mh-fix-nbfmt
mhucka c086f02
Merge branch 'main' into mh-fix-nbfmt
mhucka 313b61d
Merge branch 'main' into mh-fix-nbfmt
mhucka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Are we planning to download from cirq from other repos too?
Uh oh!
There was an error while loading. Please reload this page.
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.
Ah, no; the reason I assigned a variable is that the same URL is used in two places (as it was in the previous version of this script too). It seems better to keep things DRY and write it once.
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.
It is still downloading from
https://raw.githubusercontent.com/quantumlib/Cirq/main
I am not sure I understand your comment.Uh oh!
There was an error while loading. Please reload this page.
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.
Ok, maybe I don't understand your question :-).
You had asked "Are we planning to download from cirq from other repos too?", which I interpreted as asking whether we'd download cirq from repos other than the cirq repo. The answer to that is no – I can't think of a reason to download it from a repo other than cirq's repo. I was puzzled by why you were asking, so I thought maybe the reason you were asking is that it's unclear why the download location is being assigned to a variable when that value will never change. The reason for that is that the location is used in more than one place in the script.
Could you clarify what "download from cirq from other repos" means?
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.
This PR is for the unitary repo but the url is downloading tools from the cirq repo:
Uh oh!
There was an error while loading. Please reload this page.
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.
Oh, I understand now.
The reason for this is simply that the original
nbfmt
in unitary does this. (This can be seen in the version in main currently.) I didn't want to question the original choice so left that part the same, and only cleaned up the code in other ways.I could rewrite that, if that would be preferable?
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.
Oh, I see. I didn't realize that this was preexisting. Yeah, maybe we could make this more independent, but it's lower priority and can be done in a later PR.