]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
style(config): manually run pre-commit
authorLuís Henrique Allebrandt Schunemann <44511825+luishenri@users.noreply.github.com>
Sat, 16 Aug 2025 16:02:53 +0000 (13:02 -0300)
committerLuís Henrique Allebrandt Schunemann <44511825+luishenri@users.noreply.github.com>
Sat, 16 Aug 2025 16:02:53 +0000 (13:02 -0300)
alembic/config.py
tests/test_config.py

index a70359afe5c8038d8fee12d00f61feee14289f07..b8c60a48971abf915549f4ac8b2a47757e9ef985 100644 (file)
@@ -426,7 +426,9 @@ class Config:
 
     def get_alembic_option(
         self, name: str, default: Optional[str] = None
-    ) -> Union[None, str, list[str], dict[str, str], list[dict[str, str]], int]:
+    ) -> Union[
+        None, str, list[str], dict[str, str], list[dict[str, str]], int
+    ]:
         """Return an option from the "[alembic]" or "[tool.alembic]" section
         of the configparser-parsed .ini file (e.g. ``alembic.ini``) or
         toml-parsed ``pyproject.toml`` file.
@@ -470,7 +472,9 @@ class Config:
 
     def _get_toml_config_value(
         self, name: str, default: Optional[Any] = None
-    ) -> Union[None, str, list[str], dict[str, str], list[dict[str, str]], int]:
+    ) -> Union[
+        None, str, list[str], dict[str, str], list[dict[str, str]], int
+    ]:
         USE_DEFAULT = object()
         value: Union[None, str, list[str], dict[str, str], int] = (
             self.toml_alembic_config.get(name, USE_DEFAULT)
index 72f5c101d5742b099014806ce2c16cdb5124d239..2a1960a4eb439bbce69760d6167c902b1f697e28 100644 (file)
@@ -586,7 +586,9 @@ script_location = "%(here)s/scripts"
             sd = ScriptDirectory.from_config(cfg)
             eq_(getattr(sd, paramname), bool(argtype.true))
 
-    @testing.variation("arg_type", ["int", "string_int", "omit", "wrong_value"])
+    @testing.variation(
+        "arg_type", ["int", "string_int", "omit", "wrong_value"]
+    )
     def test_truncate_slug_length_types(
         self, pyproject_only_env, arg_type: testing.Variation
     ):