Replies: 1 comment
-
|
You’re right — this is almost always caused by tool version or environment drift 🔧 How to align local checks with CI
📁 About errors in files you didn’t modify
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am preparing a small contribution, but I’m seeing mismatches between my local checks and what passes in CI. Locally,
pre-commit(ruff + mypy) fails with type‑checking errors in files I did not modify, while themainbranch appears clean. I suspect a tool‑version or environment drift between my machine and CI.Steps to Reproduce
Actual Result
Mypy reports errors in unrelated modules (e.g., incompatible types) even though the same files appear to pass CI on
main.Question
What is the correct way to align local tool versions (Python, ruff, mypy, pre‑commit hooks) with the versions used in CI so that local checks match CI behavior?
If type errors appear outside the files I changed, is it recommended to limit checks to staged files or open a separate PR to address repository‑wide issues?
Beta Was this translation helpful? Give feedback.
All reactions