Repository navigation
chore: bump repo-local pins - #1099
Merged
Merged
Conversation
uv-pre-commit 0.12.7, typos v1.50.0, worktrunk 0.75.0, and the lockfile's click and wcwidth. ruff is held back for its own PR: v0.16.5 reports 66 findings.
max-sixty
pushed a commit
that referenced
this pull request
Aug 30, 2026
Moves `ruff-pre-commit` from v0.14.11 to v0.16.5, held out of #1099 because it isn't an ordinary rev bump: ruff 0.16.0 expanded the default rule set from 59 rules to 413, and 0.15.0 moved the formatter to the 2026 style guide. The repo carries no ruff configuration, so it takes those defaults directly — 64 findings appear on a codebase that reports `All checks passed!` under the old pin. Every change here is behaviour-preserving; the point is to move the pin without smuggling in a semantic change. Three findings are suppressed rather than fixed, each with the reason inline. Each is in code where satisfying the rule would be a real change: the mitmproxy addon's root-logger call (`LOG015`) sits in the credential-injection path and follows mitmproxy's documented addon pattern, `preexec_fn` in the OAuth helper (`PLW1509`) is what gives the child its controlling terminal, and `UP017` in `shared/steps/_common.py` would rewrite `datetime.timezone.utc` to the 3.11+ `datetime.UTC` in a directory documented as 3.10-compatible (those step bodies run on the runner's system `python3`, which is 3.10 on an `ubuntu-22.04` `runs-on` override). Say the word and either can become a named logger / restructured spawn instead. <details><summary>What the 64 findings were, and how each was handled</summary> | Rule | n | Handling | |---|---|---| | `I001` unsorted-imports | 27 | ruff's own safe fix | | `PLW1510` subprocess-run-without-check | 19 | explicit `check=False` at every site — this is the current behaviour spelled out, not a change to it | | `RUF059` unused-unpacked-variable | 5 | ruff's fix (`rows` → `_rows`) | | `UP037` quoted-annotation | 3 | ruff's fix; the file carries `from __future__ import annotations`, so unquoting is safe | | `UP017` datetime-timezone-utc | 2 | one ruff's fix (a test); one suppressed in `shared/steps/`, reason inline | | `PIE810` multiple-starts-ends-with | 2 | ruff's fix (tuple argument) | | `FURB167` regex-flag-alias | 2 | ruff's fix | | `PLR1730` if-stmt-min-max | 1 | ruff's fix | | `PERF102` incorrect-dict-iterator | 1 | ruff's fix; the discarded key was genuinely unused | | `LOG015` root-logger-call | 1 | suppressed, reason inline | | `PLW1509` subprocess-popen-preexec-fn | 1 | suppressed, reason inline | `PLW1510` has no autofix in ruff, so `check=False` was inserted at each call's closing paren via an AST pass that refused to write any file it couldn't re-parse, then normalised by `ruff format`. **Formatting.** 14 files are reformatted. One is the 2026 style guide's own doing — it is the only file `ruff format --check` rewrites against `main` at v0.16.5. The other 13 are the `check=False` insertions being wrapped back onto their lines. **Verification.** `pre-commit run --all-files` passes at the new rev, and `uv run pytest` passes (763), including the regtest snapshots — so no generated workflow output moved. `worker/` and `site/` are untouched. **The alternative, not taken.** Pinning `select = ["E4", "E7", "E9", "F"]` would reproduce the pre-0.16 default exactly and drop the diff to one line. That trades a config-free repo for a frozen rule set, which reads like the wrong direction for a repo that has deliberately carried no ruff config — but it is a one-line change if you'd rather have it. </details> --------- Co-authored-by: tend-agent <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Aug 30, 2026
The repo-local half of the weekly pin sweep: `uv-pre-commit` 0.12.5 →
0.12.7, `mirrors-typos` v1.49.0 → v1.50.0, `WORKTRUNK_VERSION` 0.74.0 →
0.75.0, and the lockfile's `click` 8.4.2 → 8.5.0 and `wcwidth` 0.8.2 →
0.8.3. Nothing here ships to adopters. `pre-commit run --all-files` and
`uv run pytest` (763) pass.
`ruff-pre-commit` is deliberately held back — v0.14.11 → v0.16.5 reports
66 findings across the repo (37 auto-fixable, 29 not) plus reformatting
in 3 files, so it gets its own PR rather than riding along here.
<details><summary>Worktrunk verification</summary>
Nothing in CI runs `.config/codex-cloud/environment.sh`, and it runs
under `set -euo pipefail`, so the overlay asks for both of its
preconditions to be checked by hand. Both were, against v0.75.0 on this
runner:
- `worktrunk-installer.sh` still ships in the release assets, and the
install honours `WORKTRUNK_UNMANAGED_INSTALL`.
- `wt --version` prints `wt v0.75.0`, matching the `"wt
v${WORKTRUNK_VERSION}"` equality the script guards on — a format change
there would reinstall on every run.
- `wt config approvals add --yes` records without a TTY: all 7 commands
`.config/wt.toml` declares were approved and saved, exit 0, and `wt
config approvals list` shows an empty UNAPPROVED section afterwards.
</details>
Co-authored-by: tend-agent <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Aug 30, 2026
Moves `ruff-pre-commit` from v0.14.11 to v0.16.5, held out of #1099 because it isn't an ordinary rev bump: ruff 0.16.0 expanded the default rule set from 59 rules to 413, and 0.15.0 moved the formatter to the 2026 style guide. The repo carries no ruff configuration, so it takes those defaults directly — 64 findings appear on a codebase that reports `All checks passed!` under the old pin. Every change here is behaviour-preserving; the point is to move the pin without smuggling in a semantic change. Three findings are suppressed rather than fixed, each with the reason inline. Each is in code where satisfying the rule would be a real change: the mitmproxy addon's root-logger call (`LOG015`) sits in the credential-injection path and follows mitmproxy's documented addon pattern, `preexec_fn` in the OAuth helper (`PLW1509`) is what gives the child its controlling terminal, and `UP017` in `shared/steps/_common.py` would rewrite `datetime.timezone.utc` to the 3.11+ `datetime.UTC` in a directory documented as 3.10-compatible (those step bodies run on the runner's system `python3`, which is 3.10 on an `ubuntu-22.04` `runs-on` override). Say the word and either can become a named logger / restructured spawn instead. <details><summary>What the 64 findings were, and how each was handled</summary> | Rule | n | Handling | |---|---|---| | `I001` unsorted-imports | 27 | ruff's own safe fix | | `PLW1510` subprocess-run-without-check | 19 | explicit `check=False` at every site — this is the current behaviour spelled out, not a change to it | | `RUF059` unused-unpacked-variable | 5 | ruff's fix (`rows` → `_rows`) | | `UP037` quoted-annotation | 3 | ruff's fix; the file carries `from __future__ import annotations`, so unquoting is safe | | `UP017` datetime-timezone-utc | 2 | one ruff's fix (a test); one suppressed in `shared/steps/`, reason inline | | `PIE810` multiple-starts-ends-with | 2 | ruff's fix (tuple argument) | | `FURB167` regex-flag-alias | 2 | ruff's fix | | `PLR1730` if-stmt-min-max | 1 | ruff's fix | | `PERF102` incorrect-dict-iterator | 1 | ruff's fix; the discarded key was genuinely unused | | `LOG015` root-logger-call | 1 | suppressed, reason inline | | `PLW1509` subprocess-popen-preexec-fn | 1 | suppressed, reason inline | `PLW1510` has no autofix in ruff, so `check=False` was inserted at each call's closing paren via an AST pass that refused to write any file it couldn't re-parse, then normalised by `ruff format`. **Formatting.** 14 files are reformatted. One is the 2026 style guide's own doing — it is the only file `ruff format --check` rewrites against `main` at v0.16.5. The other 13 are the `check=False` insertions being wrapped back onto their lines. **Verification.** `pre-commit run --all-files` passes at the new rev, and `uv run pytest` passes (763), including the regtest snapshots — so no generated workflow output moved. `worker/` and `site/` are untouched. **The alternative, not taken.** Pinning `select = ["E4", "E7", "E9", "F"]` would reproduce the pre-0.16 default exactly and drop the diff to one line. That trades a config-free repo for a frozen rule set, which reads like the wrong direction for a repo that has deliberately carried no ruff config — but it is a one-line change if you'd rather have it. </details> --------- Co-authored-by: tend-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repo-local half of the weekly pin sweep:
uv-pre-commit0.12.5 → 0.12.7,mirrors-typosv1.49.0 → v1.50.0,WORKTRUNK_VERSION0.74.0 → 0.75.0, and the lockfile'sclick8.4.2 → 8.5.0 andwcwidth0.8.2 → 0.8.3. Nothing here ships to adopters.pre-commit run --all-filesanduv run pytest(763) pass.ruff-pre-commitis deliberately held back — v0.14.11 → v0.16.5 reports 66 findings across the repo (37 auto-fixable, 29 not) plus reformatting in 3 files, so it gets its own PR rather than riding along here.Worktrunk verification
Nothing in CI runs
.config/codex-cloud/environment.sh, and it runs underset -euo pipefail, so the overlay asks for both of its preconditions to be checked by hand. Both were, against v0.75.0 on this runner:worktrunk-installer.shstill ships in the release assets, and the install honoursWORKTRUNK_UNMANAGED_INSTALL.wt --versionprintswt v0.75.0, matching the"wt v${WORKTRUNK_VERSION}"equality the script guards on — a format change there would reinstall on every run.wt config approvals add --yesrecords without a TTY: all 7 commands.config/wt.tomldeclares were approved and saved, exit 0, andwt config approvals listshows an empty UNAPPROVED section afterwards.