-
Notifications
You must be signed in to change notification settings - Fork 17
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
Type check project the tests are running on #80
Conversation
Minimum allowed coverage is Generated by 🐒 cobertura-action against 2295f72 |
We could always disable |
dca16f2
to
2295f72
Compare
Yeah, true. I did that and fixed some errors that popped up |
Could perhaps be nice to move to django-bananas/tests/tests/drf/test_fencing.py Lines 186 to 187 in 2295f72
|
@flaeppe Yeah would be nice to introduce pytest, a little surprising though that unittest's |
@antonagestam indeed, that's a bit surprising |
I split the content under
tests/
in 2 to only allow tests([mypy-tests.tests.*]
) to be excluded from type checking.I considered type checking test cases too, but browsing quickly through the ~150 errors spewed out they're mainly hitting the
disallow_untyped_defs
-errors. So splitting it up like this felt like a reasonable compromise that'll capture meaningful errors from type usage.Let me know what you think.