From: Mike Bayer Date: Fri, 19 Jun 2020 14:25:42 +0000 (-0400) Subject: Propose black py27 + py35 mode for the rest of Py2K X-Git-Tag: rel_1_4_0b1~264^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5850dbca071a565cc00f613618b4fcddd13a5eee;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Propose black py27 + py35 mode for the rest of Py2K py27 mode produces one failure for flake8 which is the space added between exec and parenthesis. however apparently we can add multiple versions to target-versions which allows the exec() calls to come out in python 3 style. The issue we want to improve is issues of trailing commas being added. I'm not really able to get black to consistently add or remove these trailing commas in any case no matter what I set target-version towards. Change-Id: Iceb9e9aeb5f5e0d317fb877ef06eca0290997fe4 --- diff --git a/pyproject.toml b/pyproject.toml index a8f43fefdf..276edcf74b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,3 @@ [tool.black] line-length = 79 +target-version = ['py27', 'py35']