mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 02:20:58 -05:00
Merge pull request #640 from scop/feat/pre-commit-docker
feat: Add Docker pre-commit hook
This commit is contained in:
commit
93d01aecca
2 changed files with 11 additions and 1 deletions
|
@ -7,6 +7,15 @@
|
|||
types: [text]
|
||||
stages: [commit, merge-commit, push, manual]
|
||||
|
||||
- id: typos-docker
|
||||
name: typos
|
||||
description: Source code spell checker, Docker image
|
||||
language: docker
|
||||
entry: typos
|
||||
args: [--write-changes]
|
||||
types: [text]
|
||||
stages: [commit, merge-commit, push, manual]
|
||||
|
||||
- id: typos-src
|
||||
name: typos
|
||||
description: Source code spell checker, source install
|
||||
|
|
|
@ -13,7 +13,8 @@ repos:
|
|||
|
||||
The `typos` id installs a prebuilt executable from GitHub releases. If
|
||||
one does not exist for the target platform, or if one built from
|
||||
sources is preferred, use `typos-src` as the hook id instead.
|
||||
sources is preferred, use `typos-docker` (requires Docker), or `typos-src`
|
||||
(requires Rust) as the hook id instead.
|
||||
|
||||
Be sure to change `rev` to use the desired `typos` git tag or
|
||||
revision.
|
||||
|
|
Loading…
Reference in a new issue