Skip to content

Commit

Permalink
Fix typo in pre-commit docs (#512)
Browse files Browse the repository at this point in the history
* Fix typo in pre-commit docs

The previous examples aren't valid. The repo would be missing the `hooks` and `rev` keys.

* Update newsfragment
  • Loading branch information
TillerBurr committed May 16, 2023
1 parent b3a2d7f commit 8dced38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/pre-commit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Usage with the default configuration
repos:
- repo: https://github.com/twisted/towncrier
- rev: 22.13.0 # run 'pre-commit autoupdate' to update
- hooks:
rev: 22.13.0 # run 'pre-commit autoupdate' to update
hooks:
- id: towncrier-check
Expand All @@ -30,8 +30,8 @@ News fragments are stored in ``changelog.d/`` in the root of the repository and
repos:
- repo: https://github.com/twisted/towncrier
- rev: 22.13.0 # run 'pre-commit autoupdate' to update
- hooks:
rev: 22.13.0 # run 'pre-commit autoupdate' to update
hooks:
- id: towncrier-update
files: $changelog\.d/
args: ['--keep']
1 change: 1 addition & 0 deletions src/towncrier/newsfragments/512.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix typos in the Pre-Commit docs.

0 comments on commit 8dced38

Please sign in to comment.