aspect-build / aspect-build/rules_lint
How to sync ruff versions between rules_lint and venv
- Dominant language
- Starlark
- Stars
- 154
- Forks
- 125
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 20
Description
This is more or less a follow-up to https://github.com/aspect-build/rules_lint/issues/465
And it is more or less a question of "what is the best way to do XY"
**Status Quo:**
* we use `rules_lint` to ruff our python code base
* `rules_lint` pulls in a dedicated version of ruff (see e.g. https://github.com/aspect-build/rules_lint/blob/3845d04c68102b092c22d39f53d3c1839e514339/lint/multitool.lock.json)
* in our project, we also use `rules_uv` to generate a virtual environment for testing, type checking etc.
* the `ruff` version we get in the exported venv therefore most likely deviates from the one used by `rules_lint` (devs are more likely to use the ruff from the venv as it is integrated in their IDE - @alexeagle shows something similar e.g. in https://www.youtube.com/watch?v=GTsy7IfmywQ)
So we ask ourself - what is the recommended way to sync up those possible mismatching ruff versions?
Contributor guide
Assessment
This issue has not been assessed yet.