dovpanda icon indicating copy to clipboard operation
dovpanda copied to clipboard

Binary to run Python app with dovpanda?

Open karlicoss opened this issue 5 years ago • 1 comments

Brief Description

I understand that dovpanda is a dynamic tool and actually needs to run the program unlike static linters (e.g. mypy, pylint).

Still, would be cool if there was a binary that can, say, hook up onto importing pandas and automatically import dovpanda as well. That way it would be easy to do something like:

dovpandas python3 -m mymodule
dovpandas pytest mymodule

If it could also exit with non-zero code on dovpandas errors, it would be quite useful to run on CI! Not sure if it's easily possible in python, first thing that comes to mind is creating a temporary package pandas and adding it to PYTHONPATH:

# pandas.py ('fake' pandas package)
import dovpandas
# ??? somehow import everything from original pandas package

karlicoss avatar Dec 30 '19 08:12 karlicoss

This sounds awesome. Do you have any ideas or blueprints on how to implement such thing?

DeanLa avatar Jan 13 '20 22:01 DeanLa