-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mypy as a pre-commit hook to enforce better typing #90
Comments
Hey @NP4567-dev, good idea, I don't see any reason not to try it :) |
To answer the question about the tags "maintenance" or "dev" I think you (as dev on the project) should be able to create a blank issue instead of using the feature/bug templates? Tell me if it is not the case! And I am okay with the integration of mypy. I have not used it a lot, to be honest, but still think it is good practice to have it. I know that there are other alternatives as well like Pyright or Pyre, but again, not very familiar to me. |
I'm a contributor but not a dev I think? You have to manually add me to the project members. It does not seem like I can edit labels. No worries, I'm ok with developping on my fork. Currently mypy detects more than twenty issues. This should be a gain in the long run as it should make the code more maintainable but I don't want to touch anything that is currently being updated in another issue or break something that was done for reasons I don't get. Let me know how you'd like to handle this. |
Personally I'm ok with putting a bit of effort to make it work. @samuelrince If you agree let's open these issues. |
Yes, I am in favor of adding mypy! I'd rather have it in the same issue/PR if that's possible? If @NP4567-dev you already have a prototype (even non-working) it would be great if you can push it in new branch in this repo! Ping me on Slack if you have permission issues, but it should be fine. |
Hey @NP4567-dev, the remaining errors may be linked with @jaywonchung's comment in #95:
|
Ok, so I finally had some time and have a first draft on my fork here Not really fixed:
Updated:
|
Description
Adding mypy as a pre-commit hook is a good way to ensure better code quality and enforce best practices in my opinion.
The first mypy all red error list is going to sting a bit but everything should be smoother afterwards.
I can work on it as soon as you deem it a good idea.
Also, as this is not a adding a "maintainability" or "dev" labels for issues that are more technical/ci-related than new features?
The text was updated successfully, but these errors were encountered: