]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
build fixes
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 13 Jul 2022 14:02:53 +0000 (10:02 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 13 Jul 2022 14:02:53 +0000 (10:02 -0400)
* hardcode rev ids in test that's sensitive to overlapping
  substrings
* turn off nitpicky mode
* fix a few rst keywords
* ensure unreleased files not considered as indexable

Change-Id: I31a0f2cbf40c794204c1e7dbc68bfcf43992c65f

docs/build/changelog.rst
docs/build/conf.py
tests/test_version_traversal.py

index 2cfd0559e80aacfad4e4c5ea42782a0bf7d08fa1..9d43e0c8a16436f5ec96f3c37f68ea5752e895ce 100644 (file)
@@ -589,7 +589,7 @@ Changelog
         also changing the column type, would cause an ALTER COLUMN operation to
         incorrectly render a second ALTER statement without the nullability if a
         new type were also present, as the MSSQL-specific contract did not
-        anticipate all three of "nullability", "type_" and "existing_type" being
+        anticipate all three of "nullability", ``"type_"`` and "existing_type" being
         sent at the same time.
 
 
@@ -870,7 +870,7 @@ Changelog
         yet been updated, these can be modified directly in order to maintain
         compatibility:
 
-        * :meth:`.Operations.drop_constraint` - "type" (use "type_") and "name"
+        * :meth:`.Operations.drop_constraint` - "type" (use ``"type_"``) and "name"
           (use "constraint_name")
 
         * :meth:`.Operations.create_primary_key` - "cols" (use "columns") and
@@ -2296,10 +2296,10 @@ Changelog
       :tags: bug, batch
       :tickets: 391
 
-      Batch mode will not use CAST() to copy data if type_ is given, however
+      Batch mode will not use CAST() to copy data if ``type_`` is given, however
       the basic type affinity matches that of the existing type.  This to
       avoid SQLite's CAST of TIMESTAMP which results in truncation of the
-      data, in those cases where the user needs to add redundant type_ for
+      data, in those cases where the user needs to add redundant ``type_`` for
       other reasons.
 
     .. change::
@@ -3686,8 +3686,8 @@ Changelog
 
       Added quoting to the table name when the special EXEC is run to
       drop any existing server defaults or constraints when the
-      :paramref:`.drop_column.mssql_drop_check` or
-      :paramref:`.drop_column.mssql_drop_default`
+      :paramref:`.Operations.drop_column.mssql_drop_check` or
+      :paramref:`.Operations.drop_column.mssql_drop_default`
       arguments are used.
 
     .. change::
index a95e869ddafad3d768d1a0e523a597a6474b2873..940610b755fd2025927bd2520e5dc57f40ca8987 100644 (file)
@@ -76,7 +76,10 @@ source_suffix = ".rst"
 # The encoding of source files.
 # source_encoding = 'utf-8'
 
-nitpicky = True
+nitpicky = False
+
+exclude_patterns = ["build", "unreleased*/*", "**/*_include.rst"]
+
 
 # The master toctree document.
 master_doc = "index"
index e9399df66e3182973b0e646a247fc7d783967d88..92413ac0c1b494fd2c94443f61ece960af44b064 100644 (file)
@@ -40,11 +40,12 @@ class RevisionPathTest(MigrationTest):
     @classmethod
     def setup_class(cls):
         cls.env = env = staging_env()
-        cls.a = env.generate_revision(util.rev_id(), "->a")
-        cls.b = env.generate_revision(util.rev_id(), "a->b")
-        cls.c = env.generate_revision(util.rev_id(), "b->c")
-        cls.d = env.generate_revision(util.rev_id(), "c->d")
-        cls.e = env.generate_revision(util.rev_id(), "d->e")
+
+        cls.a = env.generate_revision("e6239818bb3a", "->a")
+        cls.b = env.generate_revision("548bbb905360", "a->b")
+        cls.c = env.generate_revision("b7ea43dc85e4", "b->c")
+        cls.d = env.generate_revision("1bbe33445780", "c->d")
+        cls.e = env.generate_revision("3975fb1a0125", "d->e")
 
     @classmethod
     def teardown_class(cls):