From 6d2cf3475f0e9fc284722ad6a51aa3cf56499f5f Mon Sep 17 00:00:00 2001 From: David Peter Date: Fri, 17 Oct 2025 21:14:04 +0200 Subject: [PATCH] Only add the actual schema in schemastore PRs (#20947) Same as https://github.com/astral-sh/ty/pull/1391: > Last time I ran this script, due to what I assume was a `npm` version mismatch, the `package-lock.json` file was updated while running `npm install` in the `schemastore`. Due to the use of `git commit -a`, it was accidentally included in the commit for the semi-automated schemastore PR. The solution here is to only add the actual file that we want to commit. --- scripts/update_schemastore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_schemastore.py b/scripts/update_schemastore.py index 5ec1ff9d3b..5394e571be 100644 --- a/scripts/update_schemastore.py +++ b/scripts/update_schemastore.py @@ -117,11 +117,11 @@ def update_schemastore( f"This updates ruff's JSON schema to [{current_sha}]({commit_url})" ) # https://stackoverflow.com/a/22909204/3549270 + check_call(["git", "add", (src / RUFF_JSON).as_posix()], cwd=schemastore_path) check_call( [ "git", "commit", - "-a", "-m", "Update ruff's JSON schema", "-m",