Skip to content

Remove the Prettier hook - #236

Merged
AlexWaygood merged 2 commits into
astral-sh:mainfrom
zaniebot:agent/lock-prettier-hook
Aug 19, 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 prettier hook adds an npm-managed dependency just to format configuration files. Remove it from the prek configuration while keeping the existing Markdown linting, syntax checks, and all other hooks unchanged.

Related: astral-sh/ecosystem-analyzer#162 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

I'd prefer to just remove the hook if keeping it entails this much complexity; formatted YAML isn't worth all this :-)

@astral-sh-bot

astral-sh-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

This change has no effect on the docstrings that would be added to typeshed. 🤖🎉

@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 19, 2026 10:20
@AlexWaygood
AlexWaygood merged commit 5293afe into astral-sh:main Aug 19, 2026
30 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