Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
python_version => language_version (pytest-dev#296)
Browse files Browse the repository at this point in the history
Noticed this in `pytest`'s config -- `python_version` isn't a thing :D
  • Loading branch information
asottile authored and ambv committed Jun 3, 2018
1 parent 1687892 commit ecb3d8c
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 @@ -627,13 +627,13 @@ repos:
hooks:
- id: black
args: [--line-length=88, --safe]
python_version: python3.6
language_version: python3.6
```
Then run `pre-commit install` and you're ready to go.

`args` in the above config is optional but shows you how you can change
the line length if you really need to. If you're already using Python
3.7, switch the `python_version` accordingly. Finally, `stable` is a tag
3.7, switch the `language_version` accordingly. Finally, `stable` is a tag
that is pinned to the latest release on PyPI. If you'd rather run on
master, this is also an option.

Expand Down

0 comments on commit ecb3d8c

Please sign in to comment.