From 01ccbc2d5ef442193cfddcdb888bcce2800e9d93 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 7 Mar 2020 02:18:41 +0100 Subject: [PATCH 1/2] Add config for black (target-version) --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) 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'] From 4d63f6f628a285190737eb41b01df2ff3f1935bd Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 7 Mar 2020 02:19:44 +0100 Subject: [PATCH 2/2] Revert "pre-commit: black: --target-version py35" This reverts commit 673ed962b0d68bfbff4c10af9b83784449013328. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: