Replies: 2 comments
-
|
Thanks for opening this discussion. I think it's worth exploring. GitHub Actions does not support Another option is to document how to use the tools locally to identify typing issues. That would include working on a single file or Python object, instead of the entire code base. In any case, if CI fails, we need to tell the contributor how to fix the typing issues, so documentation would be required. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, thank you for your suggestion. It is great that you are passionate about type hints and I am happy that the project has progressed to a point where we can do the checks.
That might take a few months until it is complete but we will get there. If you want to contribute by monitoring PRs in steps 2-5, that would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was looking to assist with the type checking of this project and support others adding type hints (#938). In order to do this effectively I suggest a github action is setup to do automatic testing. The current project has a significant number of non-trivial errors even when strict mode is disabled so outside of inline or module level overrides this stage would not pass without significant work. Adding CI would also lower the barrier of entry for contribution from new contributors. If this project were using GitLab CI I would suggest an
allow_failuretag but this isn't available for Github afaik.A few options in order to effort:
mypyin CI but|| true- this will not pick up regressions but will preserve green build.mypyin CI with|| truebut use an external library such as https://github.com/orsinium-labs/mypy-baseline to raise if new errors are introduced - preserve green build but only if no regressions found.I'm happy to assist where I can with implementation and open to any other suggestions. In the end, knowing which hints can and can't be relied on will help with readability and maintainability in the long run 💪 .
Beta Was this translation helpful? Give feedback.
All reactions