# 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
def _get_variant_mapping(type_):
return type_, type_._variant_mapping
-
else:
def _type_has_variants(type_):
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
# 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
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")],
)
)
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
mako
python-dateutil
zimports
- black
+ black==22.3.0
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