Commit 4027809
authored
ci: pin ruff to 0.15.22 to unbreak main (#480)
## Problem
`main` and every open PR are currently red on the required checks
**`python-lint`** and **`python-sdk-test`** (all Python versions).
Root cause is a floating linter, not any code change:
- Both jobs install ruff **unpinned** (`pip install ruff` in the
`python-lint` job and again in the `python-sdk-test` "Lint with ruff"
step).
- **ruff 0.16.0** was published `2026-07-23T19:10:46Z`. The next `main`
run (`378d72b`/`c3e6ddb`) executed at `19:14Z` — ~4 minutes later — and
picked it up.
- 0.16.0 turned on a large new default rule surface, which flags **~460
pre-existing findings** repo-wide: `UP045` (120), `I001` (84), `UP006`
(79), `BLE001` (71), `UP035` (31), plus `S110`, `RUF*`, `SIM*`,
`DTZ005`, etc.
The last green `main` runs (01:00Z the same day) used **ruff 0.15.22**.
**No `.py` changed** between those and the first red run (only `.yml` /
lockfiles), so this is purely the ruff version.
## Fix
Pin both installs to `ruff==0.15.22` (the last green version), with a
comment explaining why.
## Verification (local, on current `main`)
- `ruff==0.15.22 check . --extend-exclude '**/*.ipynb'` -> **All checks
passed!**
- `ruff==0.15.22 check src/ tests/` in `sdks/python/sdk` -> **All checks
passed!**
## Note
This is a deliberate stopgap to unblock merges immediately. The 460
findings under 0.16.0 are real lint signal; a follow-up can address (or
selectively `ignore`) them and then bump the pin. Filing/So they don't
get lost, happy to open that follow-up.
<!-- This is an auto-generated description by cubic. -->
<a href="https://cubic.dev/pr/usemoss/moss/pull/480?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->1 parent 378d72b commit 4027809
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
94 | | - | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
0 commit comments