]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Propose black py27 + py35 mode for the rest of Py2K
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Jun 2020 14:25:42 +0000 (10:25 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Jun 2020 14:29:53 +0000 (10:29 -0400)
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

pyproject.toml

index a8f43fefdf149ecbf2415952cba59074a3027744..276edcf74b90ef2fc0b0b596233969c9b32c1253 100644 (file)
@@ -1,2 +1,3 @@
 [tool.black]
 line-length = 79
+target-version = ['py27', 'py35']