docs: Improve pre-commit use (#1551)
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.
This commit is contained in:
parent
2955bdc676
commit
2c5041cfa0
@ -370,10 +370,10 @@ Use [pre-commit](https://pre-commit.com/). Once you
|
|||||||
```yaml
|
```yaml
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: stable
|
rev: 19.10b0 # Replace by any tag/version: https://github.com/psf/black/tags
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- 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.
|
Then run `pre-commit install` and you're ready to go.
|
||||||
|
Loading…
Reference in New Issue
Block a user