Merged
Conversation
Co-authored-by: saint2706 <45678566+saint2706@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Lint and format code to fix all errors and warnings
Fix Prettier formatting violations
Feb 12, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates PythonRunner to resolve Prettier formatting violations, primarily adjusting hook call formatting and JSX whitespace/layout.
Changes:
- Reformatted the
useImperativeHandlecall to match Prettier’s multiline style. - Collapsed the empty-output
<pre>JSX content to a single line.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
102
to
104
| {output === '' && !error && ( | ||
| <pre className="python-runner__stdout python-runner__stdout--empty"> | ||
| (no output) | ||
| </pre> | ||
| <pre className="python-runner__stdout python-runner__stdout--empty">(no output)</pre> | ||
| )} |
There was a problem hiding this comment.
This JSX change can alter rendered output: inside a
(and with white-space: pre-wrap in CSS), newline/indentation whitespace is significant. Collapsing to a single line removes the leading/trailing whitespace that the previous multi-line markup would have produced. If this PR is meant to be style-only, consider rendering the text in a way that preserves the exact previous whitespace, or update the PR description to note the user-visible behavior change.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixed code style violations in
src/components/PythonRunner.tsxto comply with Prettier configuration.Changes
useImperativeHandlehook call with proper line breaksAll linting, formatting, type checking, and build now pass without errors or warnings.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.