# pretty-quick

> Runs Prettier on only the files you changed, with a pre-commit mode

Source: https://talira.ai/catalog/pretty-quick-vjah55ap
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / formatting](https://talira.ai/categories/developer-tools/formatting), [developer tools / git / hooks](https://talira.ai/categories/developer-tools/git/hooks)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^2]
- Backed by: [Prettier](https://talira.ai/orgs/prettier-team.md)

pretty-quick runs [Prettier](https://talira.ai/catalog/prettier-wqw3mymz.md) on the files you've changed in Git or Mercurial, instead of the whole project. With --staged it works as a pre-commit hook (for example through simple-git-hooks), formatting only staged files and re-staging them, and failing on partially staged files so you can fix your staging. Other flags compare changes against a branch, filter files by glob pattern, or skip re-staging. It lives in the Prettier organization on GitHub.

## Links

- GitHub: https://github.com/prettier/pretty-quick

## Problems it solves

- run Prettier only on the files I changed before committing
- format staged files with Prettier in a pre-commit hook
- Prettier on the whole repository is too slow, I only want changed files

## Features

- runs Prettier on changed files only
- --staged pre-commit mode that formats and re-stages staged files
- compare changes with a branch
- filter files with glob patterns
- Git and Mercurial

## Limitations

- Partially staged files aren't re-staged in --staged mode; it exits non-zero so the commit stops.[^1]

## Trust

Overall: 0.30 out of 1.
Signals: maintenance 0.06, adoption 0.67, momentum 0.41, community 0.58, backing 0.30, extensibility 0.00.

- latest release v4.2.2 18 months ago
- 2.3k GitHub stars
- 27 contributors
- accepts sponsorship (Github, Github, Github)
- backed by Prettier

Warnings:

- last commit 18 months ago

## Related

- Works with [Prettier](https://talira.ai/catalog/prettier-wqw3mymz.md)

## Alternatives

- [lint-staged](https://talira.ai/catalog/lint-staged-p1rk71x0.md): Run tasks like formatters and linters against files staged in Git
- [Prettier](https://talira.ai/catalog/prettier-wqw3mymz.md): An opinionated code formatter that reprints your code in one consistent style
- [shfmt](https://talira.ai/catalog/shfmt-bynaz0ma.md): Shell script formatter, with a Go shell parser and interpreter library (mvdan/sh)
- [Biome](https://talira.ai/catalog/biome-0x0507a7.md): One fast toolchain that formats and lints JavaScript, TypeScript, JSON, CSS, HTML, GraphQL, YAML and Markdown.
- [eslint-plugin-prettier](https://talira.ai/catalog/eslint-plugin-prettier-h1600fhg.md): Run Prettier as an ESLint rule

## Sources

[^1]: https://github.com/prettier/pretty-quick/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/prettier/pretty-quick/blob/master/LICENSE (checked 29 Nov 2026)
