Add mypy (or similar) to Actions? #694
Replies: 3 comments 2 replies
-
The link to the mypy project: http://mypy-lang.org/ EDIT: The Github Project: https://github.com/python/mypy |
Beta Was this translation helpful? Give feedback.
-
By the way, we can also try using the full range of code checks and visualizations:
|
Beta Was this translation helpful? Give feedback.
-
I am not against mypy. anyone can make a PR I suppose. But we probably need some more typing before it gives any interesting result. I have really being considering using black on all code, but it requires one big commit to format everything first and I am bit afraid of that. |
Beta Was this translation helpful? Give feedback.
-
Adding annotations and typing to the project is nice. But if we doesn't check if these types are correct or in collision with other stuff , it is just a "nice to have".
Sadly, Python itself doesn't check this kind of stuff, since it is an "optional" thing.
Mypy would check these parts and I would recommened to integrate it in the Actions. Alternatives are welcomened as well.
What do you think about it?
Beta Was this translation helpful? Give feedback.
All reactions