summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-03-28 11:09:40 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-03-31 14:44:14 -0400
commit803a2373f58e794499e1e0b476db4c23e8dd7f87 (patch)
tree6106a2f031cbc0fbb4429d295aef4c486afbae7a /tox.ini
parent2c2e01a0c6d0847f5648fd0120c8fa0bd5f6268f (diff)
downloadsqlalchemy-803a2373f58e794499e1e0b476db4c23e8dd7f87.tar.gz
Add DeclarativeMeta to globals
Fixed issue in mypy plugin where newly added support for :func:`_orm.as_declarative` needed to more fully add the ``DeclarativeMeta`` class to the mypy interpreter's state so that it does not result in a name not found error; additionally improves how global names are setup for the plugin including the ``Mapped`` name. Introduces directory oriented testing as well, where a full set of files will be copied, mypy runs, then zero or more patches are applied and mypy is run again, to fully test incremental behaviors. Fixes: sqlalchemy/sqlalchemy2-stubs/#14 Change-Id: Ide785c07e19ba0694e8cf6f91560094ecb182016
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 783140502..6eea65c8f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -130,6 +130,7 @@ deps=
mock; python_version < '3.3'
importlib_metadata; python_version < '3.8'
mypy
+ patch==1.*
git+https://github.com/sqlalchemy/sqlalchemy2-stubs
commands =
pytest test/ext/mypy/test_mypy_plugin_py3k.py {posargs}