Unverified Commit 2c5041cf authored by Vinicius Gubiani Ferreira's avatar Vinicius Gubiani Ferreira Committed by GitHub
Browse files

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.
parent 2955bdc6
Loading
Loading
Loading
Loading
+2 −2
Changes for README.md: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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.