]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
bump black to 22.3.0
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Mar 2022 19:50:29 +0000 (15:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Mar 2022 20:13:23 +0000 (16:13 -0400)
both black and click were released in the past
few hours, and black 21.5b1 seems to suddenly
be failing on a missing symbol from click.  just
update to the latest

Change-Id: Icb9d98d6473aa603aa29ad1c2d1e43ff3b371db5

.pre-commit-config.yaml
alembic/util/sqla_compat.py
docs/build/conf.py
tests/test_bulk_insert.py
tests/test_postgresql.py
tox.ini

index 84abf5bcd976bea94ae136c4a55485727d71bfa0..304db477f765e6983f313f7a11cb40d508724dc1 100644 (file)
@@ -2,7 +2,7 @@
 # See https://pre-commit.com/hooks.html for more hooks
 repos:
 -   repo: https://github.com/python/black
-    rev: 21.5b1
+    rev: 22.3.0
     hooks:
     -   id: black
 
index 9e989fd4ad87e663a231f502995c10631972c4de..787b77c263a4282d646c9d6d00cf6a865a095fc8 100644 (file)
@@ -266,7 +266,6 @@ if hasattr(sqltypes.TypeEngine, "_variant_mapping"):
     def _get_variant_mapping(type_):
         return type_, type_._variant_mapping
 
-
 else:
 
     def _type_has_variants(type_):
index d9449d49b43e70aa4fdc56cf2b415d1ec3970d66..db75d72fc8fe0ab95e1404277c9b370485d01a87 100644 (file)
@@ -82,8 +82,8 @@ nitpicky = True
 master_doc = "index"
 
 # General information about the project.
-project = u"Alembic"
-copyright = u"2010-2022, Mike Bayer"  # noqa
+project = "Alembic"
+copyright = "2010-2022, Mike Bayer"  # noqa
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
@@ -230,7 +230,7 @@ htmlhelp_basename = "Alembicdoc"
 # Grouping the document tree into LaTeX files. List of tuples (source start
 # file, target name, title, author, documentclass [howto/manual]).
 latex_documents = [
-    ("index", "Alembic.tex", u"Alembic Documentation", u"Mike Bayer", "manual")
+    ("index", "Alembic.tex", "Alembic Documentation", "Mike Bayer", "manual")
 ]
 
 # The name of an image file (relative to this directory) to place at the top of
index 09c641a2e721b6191fcf0d0529060a875b07c563..1ad5b967465602b6b4a0a2e5a8bc3043bf6489ed 100644 (file)
@@ -322,5 +322,5 @@ class RoundTripTest(TestBase):
             self.conn.execute(
                 text("select id, v1, v2 from ins_table order by id")
             ).fetchall(),
-            [(1, u"row v1", u"row v5"), (2, u"row v2", u"row v6")],
+            [(1, "row v1", "row v5"), (2, "row v2", "row v6")],
         )
index 6e76fd6152c30ce99d34e757561645ecae8f6723..9246575450b53ad4fe6441d1fb91e29d6742b6fe 100644 (file)
@@ -768,7 +768,7 @@ class PostgresqlDefaultCompareTest(TestBase):
         )
 
     def test_compare_unicode_literal(self):
-        self._compare_default_roundtrip(String(), u"im a default")
+        self._compare_default_roundtrip(String(), "im a default")
 
     # TOOD: will need to actually eval() the repr() and
     # spend more effort figuring out exactly the kind of expression
diff --git a/tox.ini b/tox.ini
index 58a7df76d3db83ce2208bd84784b0a5626378af0..892ce87135650dfd33cefe8ba06fe4b32ee94300 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -24,7 +24,7 @@ deps=pytest>4.6
      mako
      python-dateutil
      zimports
-     black
+     black==22.3.0
 
 
 
@@ -89,7 +89,7 @@ deps=
       pydocstyle<4.0.0
       # used by flake8-rst-docstrings
       pygments
-      black==21.5b1
+      black==22.3.0
 commands =
      flake8 ./alembic/ ./tests/ setup.py docs/build/conf.py {posargs}
      black --check setup.py tests alembic