-
Notifications
You must be signed in to change notification settings - Fork 3
Activate mypy in pre-commit #9
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
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9 +/- ##
==========================================
+ Coverage 86.96% 87.82% +0.86%
==========================================
Files 33 34 +1
Lines 399 419 +20
Branches 81 85 +4
==========================================
+ Hits 347 368 +21
Misses 48 48
+ Partials 4 3 -1
☔ View full report in Codecov by Sentry. |
865b9fc
to
6619f76
Compare
18d73a3
to
4d9c8a0
Compare
b92227b
to
0816fc3
Compare
4d9c8a0
to
33d1313
Compare
Oooh damn 😓 Now I see what you meant. Nothing warned me that |
Heeey - apparently not blocked (and not a total disaster) |
Most of the issues are "almost clear-cut", except the astroid stuff - `pylint_pytest/checkers/class_attr_loader.py`. Those were mostly placated (but hopefully done right). Additionally, add some sanity features to `BasePytestTester`: * Marked class as `ABC` * Enforce subclasses to initialize `MSG_ID` Mostly both of those changes are "aesthetical", and do not contribute to strict guarantees of behavior, or type assertions. But at least `pytest` cries loudly when used wrong - so that's something. Signed-off-by: Stavros Ntentos <[email protected]>
7f0bd78
to
25c0b9a
Compare
... and `f{msg_id=}` Signed-off-by: Stavros Ntentos <[email protected]>
25c0b9a
to
b8ce4ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah yeah not impossible to do we'll just have to change the typing.Set to set later on.
Actually we'll just have to revert b8ce4ad |
Drafting because this will also be easier if we can do
from __future__ import annotations
after python 3.6 / 3.7 is dropped.