summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-08-11 15:58:16 -0400
committerCaselIT <cfederico87@gmail.com>2021-08-22 22:14:40 +0200
commit1977047a11124221461ad8daee502bc4c74d5f6c (patch)
tree3d574f53ef89569f57caaaa6fd9b94f46a08e154 /tox.ini
parent6aad68605f510e8b51f42efa812e02b3831d6e33 (diff)
downloadalembic-1977047a11124221461ad8daee502bc4c74d5f6c.tar.gz
generate .pyi files for proxied classes
Stub .pyi files have been added for the "dynamically" generated Alembic modules ``alembic.op`` and ``alembic.context``, which include complete function signatures and docstrings, so that the functions in these namespaces will have both IDE support (vscode, pycharm, etc) as well as support for typing tools like Mypy. The files themselves are statically generated from their source functions within the source tree. Still not available is sphinx autodoc from the .pyi file. so we might want to further modify this to write into the .py directly. if we do *that*, we could almost get rid of ModuleClsProxy and just generate proxying methods fully in op.py. however, this won't work for the "extending ops" use case. Change-Id: I3f084040de25ed3f8e92a4e9d0bb83d69b78eac6
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 20e55ab..5cdbce5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -21,6 +21,8 @@ deps=pytest>4.6
sqlalchemy: sqlalchemy>=1.3.0
mako
python-dateutil
+ zimports
+ black