Skip to content

Commit

Permalink
docs: Improve pre-commit use (psf#1551)
Browse files Browse the repository at this point in the history
Stable tag wasn't available and crashed when attempting to set initial
pre-commit. Also the python version needs to be installed so it would
be better to use the generic "python3" command.
  • Loading branch information
vinigfer authored Jul 16, 2020
1 parent 2955bdc commit 2c5041c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,10 @@ Use [pre-commit](https://pre-commit.com/). Once you
```yaml
repos:
- repo: https://github.com/psf/black
rev: stable
rev: 19.10b0 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3.6
language_version: python3 # Should be a command that runs python3.6+
```
Then run `pre-commit install` and you're ready to go.
Expand Down

0 comments on commit 2c5041c

Please sign in to comment.