Skip to content

Clarify that files modified in prek runs are still failures#1580

Merged
nathanjmcdougall merged 3 commits intomainfrom
copilot/update-agent-skills-static-checks
Mar 27, 2026
Merged

Clarify that files modified in prek runs are still failures#1580
nathanjmcdougall merged 3 commits intomainfrom
copilot/update-agent-skills-static-checks

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 27, 2026

Agents were misinterpreting prek output where all individual hooks show "Passed"/"Skipped" but the overall run fails due to Files were modified by following hooks. This edge case came up in #1558.

  • Added explicit guidance to usethis-qa-static-checks skill (v1.5 → v1.6) that file modifications by hooks (e.g. auto-formatting) constitute a failure requiring a re-run to confirm a clean pass

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Update usethis-qa-static-checks skill (v1.5 → v1.6) to explicitly
document that file modifications by hooks count as failures, even when
all individual hooks show "Passed" or "Skipped".

Closes #1561

Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/c719f2a0-31b5-4d19-b60f-ed4f47bd1bf9

Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Copilot AI changed the title [WIP] Clarify that modified files in prek runs are still failures Clarify that files modified in prek runs are still failures Mar 27, 2026
Copilot AI requested a review from nathanjmcdougall March 27, 2026 04:02
@nathanjmcdougall nathanjmcdougall marked this pull request as ready for review March 27, 2026 04:43
@nathanjmcdougall nathanjmcdougall merged commit 5ec237a into main Mar 27, 2026
@nathanjmcdougall nathanjmcdougall deleted the copilot/update-agent-skills-static-checks branch March 27, 2026 04:43
@nathanjmcdougall nathanjmcdougall linked an issue Mar 27, 2026 that may be closed by this pull request
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.

Clarify that files modified in prek runs are still failures

2 participants