]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix some pep8 warnings
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Dec 2020 16:22:37 +0000 (11:22 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Dec 2020 16:22:37 +0000 (11:22 -0500)
somehow the change in 4beecfb90 merged with failing
pep8.   Fix those and also fix hardcoded "basepython" version.

Change-Id: Id38674661e038499aef76770e9799517e3613933

test/orm/test_deprecations.py
test/orm/test_session.py
tox.ini

index d5cfca83a865be8e4a0e1b75cbf1bf45e86684b5..c0d5a93d50d8a38c6bbbfb6750b1f81a5e1a41f9 100644 (file)
@@ -2028,7 +2028,12 @@ class SessionTest(fixtures.RemovesEvents, _LocalFixture):
                 "without using the text"
             ):
                 # use :bindparam style
-                eq_(sess.scalar("select id from users where id=:id", {"id": 7}), 7)
+                eq_(
+                    sess.scalar(
+                        "select id from users where id=:id", {"id": 7}
+                    ),
+                    7,
+                )
 
     def test_session_str(self):
         s1 = Session(testing.db)
index 759d78ba5248e593cc96a83b54ae445106b76d3f..a9e962cdedaf4d6fd1af74d21a2392be34f65a3b 100644 (file)
@@ -58,7 +58,6 @@ class ExecutionTest(_fixtures.FixtureTest):
         finally:
             seq.drop(connection)
 
-
     def test_parameter_execute(self):
         users = self.tables.users
         sess = Session(bind=testing.db)
diff --git a/tox.ini b/tox.ini
index 637d1e8cc45ef458cefb1671d2304e2d0f5f771c..355e8446d0aed8a3ab248e9d578d67c54e6a704a 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -100,7 +100,7 @@ commands=
 
 # thanks to https://julien.danjou.info/the-best-flake8-extensions/
 [testenv:pep8]
-basepython = python3.7
+basepython = python3
 deps=
       flake8
       flake8-import-order