aspect-build / aspect-build/rules_lint

How to sync ruff versions between rules_lint and venv

Open
#471 1 comment 2 reactions 1 assignee Claimed by @arrdem View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.