From: Vinicius Gubiani Ferreira Date: Thu, 16 Jul 2020 04:51:39 +0000 (-0300) Subject: docs: Improve pre-commit use (#1551) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/2c5041cfa0e5645275504c070ef7d0ca5609752f 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. --- diff --git a/README.md b/README.md index 33c170b..0731508 100644 --- a/README.md +++ b/README.md @@ -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.