Skip to content

Remove the Prettier hook - #162

Merged
AlexWaygood merged 2 commits into
astral-sh:mainfrom
zaniebot:agent/lock-prettier-hook
Aug 26, 2026
Merged

AlexWaygood merged 2 commits into
astral-sh:mainfrom
zaniebot:agent/lock-prettier-hook

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

The YAML-only prettier hook adds a Node formatter toolchain for very little benefit here. Remove it from the prek configuration while preserving YAML validation and all other hooks.

Related: astral-sh/docstring-adder#236 removes the same unnecessary prettier hook. astral-sh/uv#21197 removes uv's entire contributor hook configuration; this change keeps the other prek hooks.

@AlexWaygood

Copy link
Copy Markdown
Member

let's just ditch the prettier hook entirely, it only checks 2 YAML files in this repo

@zaniebot zaniebot changed the title Run the Prettier hook from a locked npm environment Remove the Prettier hook 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
AlexWaygood marked this pull request as ready for review August 26, 2026 14:33
@AlexWaygood
AlexWaygood merged commit 53517e6 into astral-sh:main Aug 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants