summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-07-13 10:02:53 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-07-13 10:02:53 -0400
commitbaed628b8d363a2663ffabe675e6cd11356532c2 (patch)
treefd27991feffcbc475847394136c2847655a800e8
parent8033c78a52b25a5145557a21630d10a34f2209e5 (diff)
downloadalembic-baed628b8d363a2663ffabe675e6cd11356532c2.tar.gz
build fixes
* 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
-rw-r--r--docs/build/changelog.rst12
-rw-r--r--docs/build/conf.py5
-rw-r--r--tests/test_version_traversal.py11
3 files changed, 16 insertions, 12 deletions
diff --git a/docs/build/changelog.rst b/docs/build/changelog.rst
index 2cfd055..9d43e0c 100644
--- a/docs/build/changelog.rst
+++ b/docs/build/changelog.rst
@@ -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::
diff --git a/docs/build/conf.py b/docs/build/conf.py
index a95e869..940610b 100644
--- a/docs/build/conf.py
+++ b/docs/build/conf.py
@@ -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"
diff --git a/tests/test_version_traversal.py b/tests/test_version_traversal.py
index e9399df..92413ac 100644
--- a/tests/test_version_traversal.py
+++ b/tests/test_version_traversal.py
@@ -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):