Skip to content

fix(ruff): install via github releases#227

Merged
zeitlinger merged 1 commit intomainfrom
feat/taplo-check
Apr 24, 2026
Merged

fix(ruff): install via github releases#227
zeitlinger merged 1 commit intomainfrom
feat/taplo-check

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

What changed

Switch Ruff and Ruff-format from the pipx:ruff backend to github:astral-sh/ruff.

This updates the canonical registry key, the obsolete-key migration map, repo metadata, and generated/tooling fixtures that still referenced pipx:ruff.

Why

Ruff publishes standalone GitHub release binaries, so flint can install Ruff directly without relying on a Python runtime just to provision the tool.

This keeps Ruff aligned with the existing backend strategy used for other standalone release-binary tools.

Impact

  • ruff and ruff-format now resolve through github:astral-sh/ruff
  • repos still pinned to pipx:ruff are treated as using an obsolete key and can be migrated automatically
  • Renovate and tracked dependency metadata now follow the new canonical tool key

Validation

  • cargo test find_obsolete_key_detects_legacy_ruff_backend
  • cargo test default_renovate_preset_covers_all_linter_tools_weekly
  • FLINT_CASES=general/list cargo test cases
  • mise run lint:fix
  • mise run lint

@zeitlinger zeitlinger marked this pull request as ready for review April 24, 2026 12:14
@zeitlinger zeitlinger requested a review from a team as a code owner April 24, 2026 12:14
Copilot AI review requested due to automatic review settings April 24, 2026 12:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR switches Ruff and Ruff-format from the pipx:ruff backend to installing Ruff directly from GitHub releases via github:astral-sh/ruff, keeping flint’s tool provisioning aligned with other standalone release-binary tools and avoiding a Python runtime dependency.

Changes:

  • Update the registry’s canonical Ruff mise tool key to github:astral-sh/ruff (including obsolete-key migration from pipx:ruff).
  • Refresh generated/tooling fixtures and super-linter version maps to use the new Ruff key.
  • Update Renovate presets/tracked deps to follow the new canonical key.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/cases/general/list/files/mise.toml Updates test fixture mise tool key for Ruff to the GitHub backend.
tasks/setup/update-super-linter-versions.sh Writes super-linter Ruff version entries under github:astral-sh/ruff.
super-linter-versions/v8.5.0.toml Replaces Ruff key with GitHub backend for the v8.5.0 mapping.
super-linter-versions/v8.4.0.toml Replaces Ruff key with GitHub backend for the v8.4.0 mapping.
src/registry/tests.rs Adds coverage ensuring legacy pipx:ruff is detected as obsolete and mapped correctly.
src/registry/obsolete.rs Adds obsolete-key migration mapping pipx:ruffgithub:astral-sh/ruff.
src/registry/checks.rs Points Ruff and Ruff-format checks at the new mise tool key.
mise.toml Updates the repo’s own mise tool declaration to the GitHub Ruff key.
default.json Updates Renovate “linters” grouping to use the new Ruff key.
.github/renovate-tracked-deps.json Tracks github:astral-sh/ruff and drops tracking of pipx:ruff.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zeitlinger zeitlinger merged commit c14e865 into main Apr 24, 2026
17 checks passed
@zeitlinger zeitlinger deleted the feat/taplo-check branch April 24, 2026 13:07
zeitlinger added a commit that referenced this pull request Apr 27, 2026
### Added

- add flint setup preflight migrations
([#233](#233))
- support managed linter configs and aqua-backed tool keys
([#228](#228))
- switch xmloxide to github backend
([#229](#229))
- add taplo formatter check
([#224](#224))
- *(init)* configure line length during init
([#218](#218))

### Fixed

- support renovate v43.136.3
([#223](#223))
- switch yaml-lint to ryl
([#226](#226))
- *(ruff)* install via github releases
([#227](#227))
- resolve init rollout regressions
([#220](#220))

### Other

- reduce fake-bin fixture coverage
([#240](#240))
- *(deps)* update dependency npm:renovate to v43.141.1
([#221](#221))
- guard fixture case groups
([#238](#238))
- *(deps)* update dependency grafana/flint to v0.20.4
([#235](#235))
- *(deps)* lock file maintenance
([#237](#237))
- *(deps)* update dependency mise to v2026.4.19
([#236](#236))
- *(deps)* update rust crate json5 to v1
([#232](#232))
- *(deps)* update taiki-e/install-action digest to 787505c
([#219](#219))
- *(deps)* update dependency grafana/flint to v0.20.3
([#225](#225))

> [!IMPORTANT]
> Close and reopen this PR to trigger CI checks.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gregor Zeitlinger <[email protected]>
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.

3 participants