-
Notifications
You must be signed in to change notification settings - Fork 3
Fix unterminated docstring and clean build_notebooks.py #8
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
Conversation
Summary of ChangesHello @solveforceapp, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on refining the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request provides some good cleanups to the build_notebooks.py script, including reformatting the docstring and removing superfluous comments and newlines. I have two suggestions for improvement: one is to catch a more specific exception type for better error handling, and the other is to restore the trailing newline at the end of the file to adhere to PEP 8 conventions.
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.
Pull request overview
This PR performs code cleanup on the build_notebooks.py script, addressing formatting issues including fixing docstring formatting and removing extraneous whitespace. The changes also include a modification to path handling logic and removal of several explanatory comments.
Key changes:
- Consolidated multi-line docstring descriptions to single lines for improved readability
- Changed absolute path handling from explicit
is_absolute()check to try/except pattern - Removed blank lines and some inline comments throughout the file
Comments suppressed due to low confidence (1)
scripts/build_notebooks.py:71
- [nitpick] The removed comment explaining that the placeholder HTML is created "so CI pages report which notebooks failed" provided valuable context about the purpose of this error handling. Consider keeping this comment as it explains a non-obvious design decision that might not be immediately clear to future maintainers.
fail_html = target_dir.joinpath(nb.stem + ".html")
with open(fail_html, "w", encoding="utf-8") as fh:
error_msg = (
f"<html><body><h1>Execution failed for {nb}</h1>"
f"<pre>{e}</pre></body></html>"
)
fh.write(error_msg)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
solveforceapp
left a comment
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.
r
|
@copilot open a new pull request to apply changes based on the comments in this thread |
1 similar comment
|
@copilot open a new pull request to apply changes based on the comments in this thread |
No description provided.