Skip to content

Commit

Permalink
fix: nicer default for pre-commit hook (#314)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Nov 17, 2023
1 parent b7ffffa commit aa1cc8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
types_or: [text]
pass_filenames: false
minimum_pre_commit_version: 2.9.0
additional_dependencies: ["repo-review[cli]"]
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,12 @@ Or pre-commit:
rev: <version>
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
```
If you use `additional_dependencies` to add more plugins, like
`validate-pyproject`, you should also include `"repo-review[cli]"` to ensure the
CLI requirements are included.

## List of checks

<!-- prettier-ignore-start -->
Expand Down

0 comments on commit aa1cc8d

Please sign in to comment.