ecmwf / pyflow

A high level Python interface to ecFlow allowing the creation of ecFlow suites in a modular and "pythonic" way
https://pyflow-workflow-generator.readthedocs.io/en/latest/
Apache License 2.0
7 stars 7 forks source link

Add Mypy #5

Open kinow opened 1 year ago

kinow commented 1 year ago

When I use pyflow in a project to develop a workflow, I get a few warnings in my IDE that could be detected with Mypy. I am preparing a PR for the kwargs in families, suites, etc. But I thought perhaps a future enhancement could be to adopt Mypy? That could help detecting simple typing issues too, receiving contributions from others (i.e. enforcing that we are all aware of the types used), and also enable to someday use other linters or performance tools like mypyc.

For example of the warnings (see yellow-ish background colored text):

image

Thank you!