-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(backend): add typechecking with ty #9664
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
feat(backend): add typechecking with ty #9664
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…feat(backend)--Add-typechecking-with-ty
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #9664 +/- ##
==========================================
- Coverage 87.39% 87.35% -0.05%
==========================================
Files 1266 1266
Lines 56467 56606 +139
Branches 2060 2060
==========================================
+ Hits 49352 49449 +97
- Misses 6608 6650 +42
Partials 507 507
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…feat(backend)--Add-typechecking-with-ty
…hub.com/matmair/InvenTree into feat(backend)--Add-typechecking-with-ty
…feat(backend)--Add-typechecking-with-ty
|
@SchrodingersGat This is ready for a review and possible merge; I have seen that you also started improving typing hints in the last weeks so I think I do not have to lay out the benefits, especially combined with good IDE tooling. |
|
Thanks @matmair these all look like great improvements, well worth the effort! |
|
Is it planned, that ty adds support for Django stubs? |
|
One can already install django stubs but there are discussions on the scope of vendored stubs astral-sh/ty#1104 |

Adds type checking via astral's (experimental) ty which is pretty fast and seems to perform similar enough to mypy for now.
There is no support for django stubs but is a loooot faster so I think it is worth it.