Skip to content

scripts/remoteassetify.py: A few minor fixes#236

Open
dramforever wants to merge 6 commits intoopenRuyi-Project:mainfrom
dramforever:remoteassetify-minor-fixes
Open

scripts/remoteassetify.py: A few minor fixes#236
dramforever wants to merge 6 commits intoopenRuyi-Project:mainfrom
dramforever:remoteassetify-minor-fixes

Conversation

@dramforever
Copy link
Copy Markdown
Contributor

@dramforever dramforever commented Apr 27, 2026

None of these issues actually affect any workflow usage, which is how they've managed to slip under the radar.

AI usage declaration: GPT 5.4 medium found the first two issues through review, but all of PR text and code changes have been done my me manually.

Remove call to strip() while reading spec from stdin to avoid incorrect
detection of spec_noeol and patch generation at start or end of file.

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Make f-string usage compatible with Python < 3.12, where quotes are
restricted to be compatible with plain string syntax.

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Fix problems found by ty check.

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
@openruyi-bot openruyi-bot Bot added the Target: Rolling Targeting rolling/current branch. label Apr 27, 2026
@dramforever dramforever marked this pull request as draft April 27, 2026 10:34
Fix ruff lints.

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
This script is not a security barrier, so command injection really isn't
a concern, but this is still a pedantic but nontheless valid correctness
fix.

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
@dramforever dramforever changed the title scripts/remoteassetify.py: Two minor fixes scripts/remoteassetify.py: A few minor fixes Apr 27, 2026
@dramforever dramforever marked this pull request as ready for review April 27, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Target: Rolling Targeting rolling/current branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant