-
Notifications
You must be signed in to change notification settings - Fork 3
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
🐛 Ignore collection failures in non-tests #15
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #15 +/- ##
==========================================
+ Coverage 92.25% 92.50% +0.24%
==========================================
Files 18 18
Lines 542 560 +18
Branches 104 109 +5
==========================================
+ Hits 500 518 +18
Misses 29 29
Partials 13 13
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Should we simply disable the message ? The solution is complex and non obvious to me. Maybe it's a nice check except if you're actually testing pytest fixtures instead of using them in your code ?
I think this is a sanity check whether I am not sure how much "valuable" it is in CI scenarios ( I haven't dug the git-log for that. We can disable it by default on v2 though? |
I meant disable it in |
I'd ... need to see that when we revisit re-enabling pylint warnings. ... or I didn't understand the question 😓 |
395c435
to
d1aba20
Compare
I'm not sure I understood this MR well. I'm going to focus on compatibility with pylint 3.0 for now (maybe using the addon in pylint itself would help me understand how it works then). |
This change applies the pre-existing patterns to identify if the files with collection problems are tests. It is then used to eliminate the false-positives of F6401 (cannot-enumerate-pytest-fixtures). As a side effect, this patch also includes precise file paths that may be used to reproduce the problem. Fixes reverbc#20 Fixes reverbc#21 Signed-off-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua> _Replayed; Source PR: https://github.com/reverbc/pylint-pytest/pull/22_ Additionally, satisfied the https://github.com/pylint-dev/pylint-pytest's `.pre-commit-config.yaml` Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
* Capture and return `stdout` and `stderr` (instead of trashing them) * Fix the 'duplicate-path' error by `relative`-izing the paths before `union`ing them * Update tests to test for both conditions Additionally, fix two `used-before-assignment` pylint issues (`stdout`, `stderr`) 🤪 Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
d1aba20
to
abc9f22
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.
LGTM !
@stdedos nice that you picked up my old PR. Too bad that I'm only seeing this now and had the plugin version pinned in my configs for all these years :( For future, I recommend either re-pushing unmodified commits or at least using the |
Apologies @webknjaz. I did those MRs multiple times. ... I obviously missed something 😅 |
Yep, it seems like you changed the authorship to |
Basically I'm trying to keep each commit in-line with a Green CI. As CI was done "after" your commit, "I had no option other to re-write it". But ofc I could've kept author/committer and/or Yeah - in retrospect, I would've done much less: Just pull the commit. I have done shenanigans to remediate ill-crafted commits (see: 69ad82f) but this MR is literally the first functional change merged. I'm afraid is too late to do something meaningful ❤️ |
You did a great job resurrecting the project regardless :) Just wanted to log the confusion, that's all. P.S. Since you mentioned liking evergreen CI and maintenance ergonomics, here's a few of my GitHub Actions that you may enjoy having here:
|
That's actually fixable by making a true merge commit (not a squash or rebase) from the original branch and having it as this natural merge in |
There you go 🙃 8310a88 |
Yaaaay! 🎉 |
This change applies the pre-existing patterns to identify if the files with collection problems are tests. It is then used to eliminate the false-positives of F6401 (cannot-enumerate-pytest-fixtures).
As a side effect, this patch also includes precise file paths that may be used to reproduce the problem.
Fixes reverbc#20
Fixes reverbc#21
Signed-off-by: Sviatoslav Sydorenko wk@sydorenko.org.ua
Replayed; Source PR: reverbc#22
Additionally, satisfied the https://github.com/pylint-dev/pylint-pytest's
.pre-commit-config.yaml
Signed-off-by: Stavros Ntentos 133706+stdedos@users.noreply.github.com
stdout
andstderr
(instead of trashing them)relative
-izing the paths beforeunion
ing themAdditionally, fix two
used-before-assignment
pylint issues (stdout
,stderr
) 🤪Signed-off-by: Stavros Ntentos 133706+stdedos@users.noreply.github.com