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

Better error message for nbfmt #135

Merged
merged 4 commits into from Jan 30, 2021

Conversation

rmlarose
Copy link
Contributor

@rmlarose rmlarose commented Jan 26, 2021

Follow up from #124. The nbfmt error message is the "Cirq error message" which says to run check/nbformat which doesn't exist in ReCirq. This PR updates the error message to reference the correct file, namely dev_tools/nbfmt. For example:

The following notebooks require formatting.
- docs/fermi_hubbard/experiment_example.ipynb
Notebooks are not formatted. Please run 'dev_tools/nbfmt --apply'

@rmlarose rmlarose marked this pull request as draft January 26, 2021 23:38
@rmlarose rmlarose marked this pull request as ready for review January 26, 2021 23:49
@@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": null,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this change included?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, leftover from intentional unformatting. Fixed now.

Copy link
Collaborator

@mpharrigan mpharrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha awesome

@mpharrigan mpharrigan merged commit 79a3513 into quantumlib:master Jan 30, 2021
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.

None yet

2 participants