Skip to content

Conversation

Pierre-Sassoulas
Copy link
Member

Drafting because this will also be easier if we can do from __future__ import annotations after python 3.6 / 3.7 is dropped.

@Pierre-Sassoulas Pierre-Sassoulas added the enhancement New feature or request label Oct 14, 2023
@Pierre-Sassoulas Pierre-Sassoulas marked this pull request as draft October 14, 2023 18:13
@codecov
Copy link

codecov bot commented Oct 14, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (a444a61) 86.96% compared to head (b8ce4ad) 87.82%.

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     
Files Coverage Δ
tests/base_tester.py 91.04% <100.00%> (+2.33%) ⬆️
tests/base_tester_test.py 100.00% <100.00%> (ø)
tests/test_pytest_yield_fixture.py 100.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stdedos stdedos added the CI label Oct 15, 2023
@stdedos stdedos added this to the Release 1.1.x milestone Oct 15, 2023
Base automatically changed from pre-commit-pylint to master October 17, 2023 19:47
@stdedos
Copy link
Collaborator

stdedos commented Oct 17, 2023

Drafting because this will also be easier if we can do from __future__ import annotations after python 3.6 / 3.7 is dropped.

Oooh damn 😓 Now I see what you meant.

Nothing warned me that from __future__ import annotations is not a valid py3.6 flag 😕

@stdedos stdedos added blocked and removed blocked labels Oct 17, 2023
@stdedos
Copy link
Collaborator

stdedos commented Oct 17, 2023

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]>
... and `f{msg_id=}`

Signed-off-by: Stavros Ntentos <[email protected]>
Copy link
Member Author

@Pierre-Sassoulas Pierre-Sassoulas left a 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.

@Pierre-Sassoulas Pierre-Sassoulas marked this pull request as ready for review October 18, 2023 06:25
@Pierre-Sassoulas
Copy link
Member Author

Actually we'll just have to revert b8ce4ad

@Pierre-Sassoulas Pierre-Sassoulas merged commit 2d6d83a into master Oct 18, 2023
@Pierre-Sassoulas Pierre-Sassoulas deleted the pre-commit-mypy branch October 18, 2023 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants