Repository navigation
Remove the Prettier hook - #162
Merged
Merged
Conversation
This was referenced Aug 18, 2026
Member
|
let's just ditch the prettier hook entirely, it only checks 2 YAML files in this repo |
AlexWaygood
approved these changes
Aug 18, 2026
zanieb
pushed a commit
to astral-sh/uv
that referenced
this pull request
Aug 18, 2026
The contributor hook configuration maintains another set of tool installations, including a floating `prettier@3` dependency, while CI already invokes each check directly. Remove `.pre-commit-config.yaml` and its Renovate configuration, and document the direct schema-validation and generated-file commands alongside the existing formatting and linting commands. This changes only uv's contributor setup; the `uv-pre-commit` integration and its user documentation remain supported. Related: #21193 covers the remaining direct `prettier` invocations. Supersedes #21194. #21154 independently pins one-shot tools; only its `prettier` hook pin overlaps with this removal. astral-sh/docstring-adder#236 and astral-sh/ecosystem-analyzer#162 remove only their unnecessary `prettier` hooks. --------- Co-authored-by: zaniebot <[email protected]>
AlexWaygood
marked this pull request as ready for review
August 26, 2026 14:33
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.
The YAML-only
prettierhook adds a Node formatter toolchain for very little benefit here. Remove it from theprekconfiguration while preserving YAML validation and all other hooks.Related: astral-sh/docstring-adder#236 removes the same unnecessary
prettierhook. astral-sh/uv#21197 removes uv's entire contributor hook configuration; this change keeps the otherprekhooks.