dovpanda
dovpanda copied to clipboard
Binary to run Python app with dovpanda?
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
This sounds awesome. Do you have any ideas or blueprints on how to implement such thing?