diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aac3beda92a..2e6b43ac8ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: rev: 19.10b0 hooks: - id: black - args: [--safe, --quiet, --target-version, py35] + args: [--safe, --quiet] - repo: https://github.com/asottile/blacken-docs rev: v1.0.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index 4ac1fd754d8..aa57762e75d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,3 +54,6 @@ template = "changelog/_template.rst" directory = "trivial" name = "Trivial/Internal Changes" showcontent = true + +[tool.black] +target-version = ['py35']