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:
Vinicius Gubiani Ferreira 2020-07-16 01:51:39 -03:00 committed by GitHub
parent 2955bdc676
commit 2c5041cfa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.