[primer] Create a class for easier comparison of pylint results#6984
Conversation
0915546 to
a54c77e
Compare
Pull Request Test Coverage Report for Build 2528939077
💛 - Coveralls |
This comment has been minimized.
This comment has been minimized.
a54c77e to
c153227
Compare
|
@Pierre-Sassoulas I would be okay with rebasing this and not doing the rename if that means we can merge this easily :) |
|
I think there was a concurrent change that forced to redo everything or at least a lot. (Which is why it's stuck not the rename). Might aknowledge the loss and redo from scratch later instead of trying to rebase then getting demoralised :) Also there was a gazillion thing on my todo list before that (too-few-logging and always suggest for no-member) but we now have a cache problem to fix first :D... |
Move cross-referencing and JSON loading from CompareCommand into a dedicated PylintComparator class with an abstract Comparator base, enabling future comparator implementations (e.g. AstroidComparator). Closes #6984
Move cross-referencing and JSON loading from CompareCommand into a dedicated PylintComparator class with an abstract Comparator base, enabling future comparator implementations (e.g. AstroidComparator). Closes pylint-dev#6984
c153227 to
b0fa36d
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6984 +/- ##
=======================================
Coverage 96.16% 96.16%
=======================================
Files 177 178 +1
Lines 19617 19627 +10
=======================================
+ Hits 18865 18875 +10
Misses 752 752
🚀 New features to boost your workflow:
|
This comment has been minimized.
This comment has been minimized.
b3e6e4f to
7702cbb
Compare
This comment has been minimized.
This comment has been minimized.
7702cbb to
ac37fbf
Compare
This comment has been minimized.
This comment has been minimized.
DanielNoord
left a comment
There was a problem hiding this comment.
Cool! Some small nits, but I'll stay on top of reviewing this so we can merge this and not let this get stale again.
|
|
||
| from pylint.testutils._primer.comparator import Comparator | ||
|
|
||
| FIXTURES_PATH = Path(__file__).parent / "fixtures" |
There was a problem hiding this comment.
| FIXTURES_PATH = Path(__file__).parent / "fixtures" | |
| CASES_PATH = Path(__file__).parent / "cases" |
| [ | ||
| pytest.param(p, id=p.name) | ||
| for p in FIXTURES_PATH.iterdir() | ||
| if p.is_dir() and p.name != "batched" # tested separately |
There was a problem hiding this comment.
Perhaps just move that case out of the directory then?
67f7cb5 to
617848e
Compare
This comment has been minimized.
This comment has been minimized.
617848e to
4eef601
Compare
|
@Pierre-Sassoulas Feels like a rebase went wrong here? There are some unrelated dependency updates in this PR. |
DanielNoord
left a comment
There was a problem hiding this comment.
Except for the unrelated changes this LGTM!
@Pierre-Sassoulas Can you rebase again? I'll approve and merge afterwards!
This comment has been minimized.
This comment has been minimized.
Move the ``# pylint: enable=duplicate-code`` comment after the ``tempdir`` context manager so it is covered by the existing suppression scope.
Move JSON loading, batching, and cross-referencing logic into a dedicated Comparator class. CompareCommand.run() now delegates to the Comparator and iterates over it to build the comment.
4eef601 to
fe2d79d
Compare
|
The duplicate-code change is required, I don't know why it suddenly fails, probably that the pre-commit grouping changed by adding new files. |
|
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉 This comment was generated for commit fe2d79d |
Type of Changes
Description
Follow up to #6973