Skip to content

Commit

Permalink
black: add config for --target-version (py27, py34) (#274)
Browse files Browse the repository at this point in the history
Ref: 673ed96

Also removes `language_version`
(2e756d6, pytest-dev#5611).
  • Loading branch information
blueyed committed Mar 7, 2020
1 parent 0add069 commit 3692e2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ repos:
hooks:
- id: black
args: [--safe, --quiet]
language_version: python3
- repo: https://github.com/asottile/blacken-docs
rev: v0.5.0
hooks:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ template = "changelog/_template.rst"
directory = "trivial"
name = "Trivial/Internal Changes"
showcontent = true

[tool.black]
target-version = ['py27', 'py34']

0 comments on commit 3692e2b

Please sign in to comment.