Skip to content

fix: name pre-commit template .pre-commit-config.yaml - #4

Merged
JesperDramsch merged 1 commit into
mainfrom
claude/action-failure-root-cause-7svh68
Sep 2, 2026
Merged

fix: name pre-commit template .pre-commit-config.yaml#4
JesperDramsch merged 1 commit into
mainfrom
claude/action-failure-root-cause-7svh68

Conversation

@JesperDramsch

Copy link
Copy Markdown
Owner

Root cause

The synced PR in keras-complex (JesperDramsch/keras-complex#25) fails the "Pre-commit Checks" workflow with:

InvalidConfigError: =====> .pre-commit-config.yaml is not a file

pre-commit only auto-discovers .pre-commit-config.yaml. The template in this repo was named .pre-commit-config.yml, so any target repo that relies on the synced file gets a config pre-commit never reads. python-deadlines passes only because it already carries its own .yaml.

Change

Pure rename, no content change:

configs/python/.pre-commit-config.yml -> configs/python/.pre-commit-config.yaml

configs/labeler.yml already referenced the .yaml name, so this also makes the repo self-consistent.

Not covered here

The other red jobs on the keras-complex sync PR (black formatting, tests failing against Keras 3) are breakage inside keras-complex itself, not in these templates.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GqGvtFsaGKvFTGMNcJpSek


Generated by Claude Code

pre-commit only discovers `.pre-commit-config.yaml` by default. The
synced template was called `.pre-commit-config.yml`, so target repos
without their own config (keras-complex) failed the "Pre-commit Checks"
workflow with "`.pre-commit-config.yaml is not a file`".

Renaming the template fixes the sync output; the labeler config already
referenced the `.yaml` name.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GqGvtFsaGKvFTGMNcJpSek
@JesperDramsch
JesperDramsch marked this pull request as ready for review September 2, 2026 20:20
@JesperDramsch
JesperDramsch merged commit 9edd9ec into main Sep 2, 2026
@JesperDramsch
JesperDramsch deleted the claude/action-failure-root-cause-7svh68 branch September 2, 2026 20:21
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