mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 18:41:05 -05:00
586 B
586 B
pre-commit
To use typos
with pre-commit
, point its
config at this repository:
repos:
- repo: https://github.com/crate-ci/typos
rev: v1.0.8
hooks:
- id: typos
Be sure to change rev
to use the desired typos
git tag or
revision.
The hook configuration defaults to writing fixes, which triggers a
pre-commit
failure if any files are modified. To make it report its
findings only instead, override the hook's args
with something that
does not contain -w
/--write-changes
, for example []
(meaning
pass no options).