Conversation
|
@manodeep @minghangli-uni One of you keen is reviewing this? Should be simple. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #37 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 8
Lines 455 455
=========================================
Hits 455 455 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks @micaeljtoliveira for this update! This change resolves the immediate version mismatch, but I dont think it's ideal on its own. Updating .pre-commit-config.yaml to v0.15.0 resolves it for now but the root cause remains - we are still maintaining two independent ruff paths. To avoid future drift, I'd prefer to consolidate it so ci runs the same pre-commit hooks as the local does? Would you mind if I push a couple of commits to this PR? |
|
@minghangli-uni Yes, this way there will be another mismatch in the future.
That depends on how you intent to solve the mismatch. I would like to avoid having the version fully pinned, as in that case there's no incentive to update it when new releases of ruff come out. |
|
Thats fair - I am not suggesting we freeze ruff. The intent is to pin it in one place only, not multiple. Using pre-commit keeps versions deterministic while still making upgrades easy through |
|
As long as the decision of when to update ruff is out of the developers' hands, I'm fine with whatever the scheme is. Feel free to push your commits and I'll see if I like what I see ;) |
|
@micaeljtoliveira I've pushed the changes |
|
Thanks. Looks like the version is indeed fully pinned. I'm assuming your idea is to activate the pre-commit-ci app on this repo. I'm not a huge fan of having external apps creating PRs, but I can live with that. What's more annoying is not being able to have the auto-fix in the hook. Is there a way to avoid that? |
|
Good question. What comes to my mind now is two options. One is to add something in the doc to tell people run these locally before pushing commits or when ci fails. Or to allow ci to push fixes automatically back to the branch? |
Yes, we should document this better. There should be a section about the hooks and what they do.
That, for me, is a definite no, as I find these kind of commits to obscure and pollute the git history. Okay, no need to waste any more time with this. Current solution is not perfect but will do. I'll clean the history of the branch and will let you have a final look and approve. |
Agree! Thanks @micaeljtoliveira |
64422a1 to
2616acc
Compare
|
Hi @micaeljtoliveira Just checking whether this is ready for review. |
|
@minghangli-uni Yes. I force-pushed the commits after a rebase, with some very minor changes to the history, last Friday. Should have pinged-up, sorry. |
minghangli-uni
left a comment
There was a problem hiding this comment.
LGTM, thanks @micaeljtoliveira
Closes #36