Skip to content

Commit 2b2eba6

Browse files
committed
Use a recent ruff instead of pinning to 0.14.9
- Run latest ruff in CI via plain `uvx ruff` (the lint job is isolated, so drift is harmless). - Bump the dev floor to ruff>=0.15 and the ruff-pre-commit tag to v0.15.18.
1 parent 7c1e7ac commit 2b2eba6

5 files changed

Lines changed: 30 additions & 38 deletions

File tree

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
with:
2424
enable-cache: true
2525

26-
# Run only ruff (pinned to match pyproject.toml/.pre-commit). The lint job
27-
# doesn't import the project, so avoid a full `uv run` project sync.
26+
# Run only ruff (latest). The lint job doesn't import the project, so
27+
# avoid a full `uv run` project sync.
2828
- name: Lint
29-
run: uvx ruff@0.14.9 check .
29+
run: uvx ruff check .
3030

3131
- name: Format
32-
run: uvx ruff@0.14.9 format . --check
32+
run: uvx ruff format . --check

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
# Pin to a specific tag to ensure reproducible installs.
4-
# You can update this periodically to get the latest fixes/features.
5-
rev: v0.14.9
3+
# pre-commit requires a concrete tag; keep it current with
4+
# `pre-commit autoupdate`.
5+
rev: v0.15.18
66
hooks:
77
- id: ruff-check
88
args: ["--fix", "--unsafe-fixes", "--show-fixes"]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies = [
1616
dev = [
1717
"pip>=21.3.1",
1818
"pre-commit>=4.5.0",
19-
"ruff>=0.14.9",
19+
"ruff>=0.15",
2020
"uv-dynamic-versioning>=0.6.0",
2121
]
2222

scripts/setup

Lines changed: 0 additions & 7 deletions
This file was deleted.

uv.lock

Lines changed: 22 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)