Skip to content

Add pins to our 'one shot' runs - #21154

Closed
woodruffw wants to merge 2 commits into
mainfrom
oss-remediation/03-one-shot-pins
Closed

woodruffw wants to merge 2 commits into
mainfrom
oss-remediation/03-one-shot-pins

Conversation

@woodruffw

Copy link
Copy Markdown
Member

Summary

This ensures that uvx pkg and similar are pinned to versions.

I'm leaving this one as a draft because I need to do a closer manual scan of it.

Test Plan

NFC.


Stack created with GitHub Stacks CLI • Give Feedback 💬

Comment thread .github/workflows/check-fmt.yml Outdated
with:
version: "0.12.3"
- run: uvx ruff format --diff .
- run: uvx ruff@0.16.2 format --diff .

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think it probably makes sense to track this in the dev group and do uv run --dev instead.

Comment thread .github/workflows/check-lint.yml Outdated
Comment on lines +73 to +76
SHELLCHECK_ARCHIVE="shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz"
curl -fsSL --output "$RUNNER_TEMP/$SHELLCHECK_ARCHIVE" "https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/${SHELLCHECK_ARCHIVE}"
printf '%s %s\n' 8c3be12b05d5c177a04c29e3c78ce89ac86f1595681cab149b65b97c4e227198 "$RUNNER_TEMP/$SHELLCHECK_ARCHIVE" | sha256sum --check
tar -xJf "$RUNNER_TEMP/$SHELLCHECK_ARCHIVE"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

try:
subprocess.run(
["uvx", "ruff", "format", file_path],
["uvx", "ruff@0.16.2", "format", file_path],

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Same thing, I suspect we want uv run --dev here.

@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from 38baddf to 911937f Compare August 16, 2026 21:09

```console
$ uvx marimo edit --sandbox my_notebook.py
$ uvx marimo@0.23.16 edit --sandbox my_notebook.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why are we changing documentation examples?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think they're valuable to change due to e.g. agent ingestion.

(Not this one specifically, but I've seen agents run things from our docs to confirm that they still work.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I disagree that we should do this. Let's talk about other mitigations for agents testing commands in the documentation.

Generally, can we please use separate pull requests for user-facing changes (i.e., to the documentation) from changes to internal development?

@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from 911937f to 2e9fd8f Compare August 16, 2026 22:45
@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from 2e9fd8f to 32f91de Compare August 17, 2026 17:13
@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from 32f91de to d237455 Compare August 17, 2026 18:43
@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from d237455 to 4c26ad7 Compare August 17, 2026 18:56
@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from 4c26ad7 to 572bdf7 Compare August 17, 2026 18:57
@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from 572bdf7 to 4f718b0 Compare August 17, 2026 19:10
@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from 4f718b0 to 8ad596b Compare August 17, 2026 19:12
@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from 8ad596b to 9e726ad Compare August 17, 2026 19:16
Base automatically changed from oss-remediation/02-uv-audit to main August 17, 2026 19:36
@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from 9e726ad to a03518b Compare August 17, 2026 19:36
@woodruffw
woodruffw force-pushed the oss-remediation/03-one-shot-pins branch from a03518b to 2aa36f7 Compare August 17, 2026 19:43
zanieb pushed a commit that referenced this pull request Aug 18, 2026
The contributor hook configuration maintains another set of tool
installations, including a floating `prettier@3` dependency, while CI
already invokes each check directly. Remove `.pre-commit-config.yaml`
and its Renovate configuration, and document the direct
schema-validation and generated-file commands alongside the existing
formatting and linting commands. This changes only uv's contributor
setup; the `uv-pre-commit` integration and its user documentation remain
supported.

Related: #21193 covers the remaining direct `prettier`
invocations. Supersedes #21194. #21154
independently pins one-shot tools; only its `prettier` hook pin overlaps
with this removal. astral-sh/docstring-adder#236 and
astral-sh/ecosystem-analyzer#162 remove only their unnecessary
`prettier` hooks.

---------

Co-authored-by: zaniebot <[email protected]>
@woodruffw

Copy link
Copy Markdown
Member Author

Superseding: #21204

@woodruffw woodruffw closed this Aug 18, 2026

This branch was previously deployed

1 inactive deployment
automations — 2aa36f73 Deployed Aug 17, 2026 by woodruffw via review / security review #44874
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.

2 participants