Add typing annotation and improve linting during CI checks. #270
Closed
sodul
started this conversation in
Enhancements
Replies: 2 comments
-
I'm fine trying your preference out and seeing how it goes. 👍🏻 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Now that we have comprehensive type annotation in main we can close this conversation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed several issues that would be captured by mypy. I suggest adding mypy to the CI checks and start adding type annotation in the codebase.
I would start with minimal mypy checks, with the latest main I find these:
This is with mypy 1.2.0 and Python 3.11.3.
I can create a PR with the updated check, and the fixes for the issues. I would add type annotation on the existing codebase, backward compatible with python 3.6.
Do you have any preference for linting the codebase? Pylint is a classic, and we use it to great success, the modern one is Ruff which is very fast but does not have as many rules as Pylint provides.
Beta Was this translation helpful? Give feedback.
All reactions