Repository navigation
fix(ci): preserve explicit Ruff lint baseline after upgrade - #224
TimeToBuildBob wants to merge 3 commits into
Conversation
Git-Session-Id: ff1f7458-0544-5835-8d4c-86f6cfbc620d
[Low impact] This configuration-only change appears safe to merge. SummaryThe PR makes Ruff’s lint selection explicit without changing the pinned action.
Reviews (1) · Last reviewed commit: "fix(ci): preserve explicit Ruff lint bas..." · Reviewed by Greptile |
🤖 AI code reviewThe PR sets Safe to merge — no P0/P1 findingsConfidence 5/5 ✅ No thread-worthy findings. Advisory notes follow; they are retained without opening review threads. 1 advisory finding (summary-only, not scored)These P2 guard, heuristic, trade-off, or documentation claims are retained for judgment without opening review threads.
This is a How this was verified: static preflight: fix-commit + touched-files scan (rule 7) Files changed (1) — the diff as I read it
Previous review passes
Reviewed Maintainer commands
|
Git-Session-Id: f69034e5-7be4-4e81-a24b-e7b45ae284f2
|
Pushed an empty commit to retrigger CI — the macOS job was CANCELLED on the previous run (not FAILED). All other checks (ubuntu, windows, typecheck, lint, format, CodeQL, Greptile) are ✅ on |
|
CI-green and mergeable (Greptile 5/5) — waiting only on a maintainer click. This PR is ready to merge, but the bot has pull-only access to this repo and can't self-merge — surfacing it here so it isn't lost. The monitoring loop will stop re-flagging it now that this note is posted. |
Without target-version, Ruff infers no floor, so pyupgrade-style fixes (e.g. UP017 -> datetime.UTC, 3.11+) could break the declared ^3.8 support if those rule families are adopted later. Refs ActivityWatch#225 Git-Session-Id: 9b655f9c-758f-5b15-b198-639d6fcfb45c
Fixes #225.
Problem
#218 upgraded the pinned Ruff action from 0.15.22 to 0.17.3. Ruff's default enabled rules changed: master now reports 150 violations across existing files, and unrelated PRs inherit the failure (including #223).
[tool.ruff]also set notarget-version, so pyupgrade-style fixes (e.g.UP017→datetime.UTC, Python 3.11+) would ignore the declaredpython = "^3.8"support.Master run: https://github.com/ActivityWatch/aw-server/actions/runs/42245017977
Fix
target-version = "py38"under[tool.ruff], matchingtool.poetry.dependencies.python.E4,E7,E9,F) and move the existing ignores into the supported[tool.ruff.lint]table, so future Ruff bumps can't silently widen it.Keep the newer pinned action. Lint stays enabled, and there are no per-file exclusions or
--fix --unsafe-fixesmass-applies. New rule families (FA100, UP, I001, …) can be adopted deliberately in separate PRs.Verification
uvx ruff@0.15.22 check .anduvx ruff@0.17.3 check .both pass.F821.