]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix black check for correct files and update test_types
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 16 Aug 2021 14:27:51 +0000 (10:27 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 16 Aug 2021 14:27:51 +0000 (10:27 -0400)
Change-Id: I5e21821ad203a91f9942fd8d29f516ed21824e50

test/sql/test_types.py
tox.ini

index 228d9fe3bd40e1f74cb9fe3989e1a72cbd6a02b4..261c3ed10d28f99af693b690a86304e0ce2cf586 100644 (file)
@@ -2560,7 +2560,7 @@ class EnumTest(AssertsCompiledSQL, fixtures.TablesTest):
         (True, "omit_alias"), (False, "with_alias"), id_="ai", argnames="omit"
     )
     @testing.provide_metadata
-    @testing.skip_if('mysql < 8')
+    @testing.skip_if("mysql < 8")
     def test_duplicate_values_accepted(self, native, omit):
         foo_enum = pep435_enum("foo_enum")
         foo_enum("one", 1, "two")
diff --git a/tox.ini b/tox.ini
index 5df14fe67c6e5829b6f0597579f499952cf3d3b8..e20671b698940b6eb4988941f88cbf8789c8b5e5 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -154,7 +154,7 @@ deps=
       black==21.5b1
 commands =
      flake8 ./lib/ ./test/ ./examples/ setup.py doc/build/conf.py {posargs}
-     black --check .
+     black --check ./lib/ ./test/ ./examples/ setup.py doc/build/conf.py
 
 # command run in the github action when cext are active.
 [testenv:github-cext]