-
-
Notifications
You must be signed in to change notification settings - Fork 20
Issue 1051 #1108
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
base: main
Are you sure you want to change the base?
Issue 1051 #1108
Conversation
Signed-off-by: rohan-019 <rohan18126@gmail.com>
Signed-off-by: rohan-019 <rohan18126@gmail.com>
Summary of ChangesHello @rohan-019, 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 streamlines the repository's code formatting and consistency by centralizing JSON formatting under Prettier and pre-commit hooks. It ensures that all relevant files, including 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 focuses on improving code formatting consistency by updating the pre-commit configuration. The changes correctly configure prettier to handle JSON files and enable end-of-file-fixer for ast.json and tokens.json. The removal of the manual JSON beautification logic from b.sh is a good simplification, centralizing formatting tasks to pre-commit hooks. The changes are well-aligned with the stated goals. I have one suggestion to ensure all modified files adhere to the new formatting standards.
|
Hey @jbampton, |
Description
This PR updates the pre-commit configuration to improve consistency and formatting across the repository:
-Removed exclusion of ast.json and tokens.json from the end-of-file-fixer hook, so these files are now checked for a trailing newline.
-Manually added a newline at the end of ast.json to comply with the updated check.
-Updated .pre-commit-config.yaml to ensure consistent formatting enforcement across JSON, YAML, and other supported files.
-Removed redundant JSON beautification from b.sh since formatting is now fully handled by prettier and end-of-file-fixer.
Why
Ensures all tracked files, including ast.json and tokens.json, follow the same formatting rules.
-Prevents future inconsistencies or CI failures caused by missing trailing newlines.
-Simplifies tooling by relying on prettier + pre-commit hooks instead of custom formatting scripts.
Related Issue
#1051
Checklist