Skip to content
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

Upgrade Ruff to 0.7.2 by default, add known-versions for latest of all 0.x series #21605

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Nov 2, 2024

This does two related changes:

  • adds known version configuration for the latest (at the time of writing) patch release of every minor series: 0.7.2, 0.6.9, 0.5.7, 0.4.10, 0.3.7, 0.2.2, 0.1.15 (I'm not sure the last three will work, but they're easy enough to include and someone can file bugs if they use them and find they don't)
  • upgrades the default version to 0.7.2

My thinking:

  • this adds all of the series so that it's very easy for someone with an existing repo using a specific version of Ruff to start using it within Pants (i.e. reduce the number of hurdles via this very simple configuration).
  • this just adds the latest patch release within each series (rather than every single patch release) to reduce quite how overwhelming it'll look in docs, assuming that Ruff is backwards compatible within a 0.x series, i.e. someone using 0.7.0 can, hopefully, easily start using 0.7.2
  • as we go forward, we just add new versions on demand (no particular rules about waiting for a series to finish, and not deleting old ones, e.g. we've got 0.4.9 and 0.4.10, and two 0.6s too, and that seems fine)

@huonw huonw merged commit f46d992 into main Nov 4, 2024
24 checks passed
@huonw huonw deleted the huonw/ruff-0.7-and-more branch November 4, 2024 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants