-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): replace broken trunk-action with prettier-scoped check #49
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
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
Oops, something went wrong.
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: KooshaPari/phenotype-python-sdk
Length of output: 7448
🌐 Web query:
Prettier CLI documentation no path supplied stdin behavior prettier --check repository path💡 Result:
The Prettier CLI handles input and path arguments in the following ways based on your query: Input from Stdin: By default, the Prettier CLI does not automatically wait for stdin if no file arguments are provided [1]. To process code via stdin, you should pipe the content to the command [2][3]. Because Prettier infers the parser from the file extension, you must provide the --stdin-filepath flag when using stdin to ensure the correct parser is selected [4][5]. For example: cat file.js | prettier --stdin-filepath file.js Behavior of --check: The --check flag is used to verify if files are formatted, outputting a list of unformatted files and a human-friendly summary [6]. When running prettier --check with no path provided: 1. It does not automatically default to checking stdin; it treats the current directory or provided arguments as the target [6]. 2. If you run prettier --check without any arguments, it may not behave as expected because it expects a file or directory path (e.g., prettier --check. to check the current directory) [7][6]. 3. If an unsupported file is encountered or if no parser can be inferred for a target, the CLI may print an error regarding the parser, though behavior regarding exit codes (0 vs 1) has been subject to updates in recent versions [7]. In summary, --check is designed for checking file structures on disk [6]. If you intend to check formatting for content passed via stdin, you would typically need to pipe the content to Prettier, although the --check flag is primarily intended for file/directory paths rather than direct stdin validation [6].
Citations:
🏁 Script executed:
Repository: KooshaPari/phenotype-python-sdk
Length of output: 439
🏁 Script executed:
Repository: KooshaPari/phenotype-python-sdk
Length of output: 881
🏁 Script executed:
Repository: KooshaPari/phenotype-python-sdk
Length of output: 231
Pass an explicit repository path to the scheduled Prettier check.
When
.prettierignoreexists, useprettier --check . --ignore-path .prettierignore. Capture its exit status instead of using|| true, because the output filter can miss untagged nonzero results.🧰 Tools
🪛 zizmor (1.29.0)
[warning] 66-66: code injection via template expansion (template-injection): may expand into attacker-controllable code
(template-injection)
🤖 Prompt for AI Agents
Source: MCP tools