Skip to content

Pre commit init config fixes - #18

Open
m-iwanicki wants to merge 2 commits into
mainfrom
pre-commit-init-config-fixes
Open

Pre commit init config fixes#18
m-iwanicki wants to merge 2 commits into
mainfrom
pre-commit-init-config-fixes

Conversation

@m-iwanicki

Copy link
Copy Markdown
Contributor

No description provided.

The Jinja2 template separates category blocks with blank lines, so the
rendered .pre-commit-config.yaml ended with a blank line for every
category combination except robotframework alone. end-of-file-fixer then
failed on the first commit in the freshly initialized repository and
rewrote the file.

Collapse the trailing newlines to exactly one before writing.

Fixes #13

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
…ile-fixer

git format-patch ends every patch with a blank line after the version
trailer, so end-of-file-fixer strips it.

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
@m-iwanicki
m-iwanicki requested a review from macpijan July 27, 2026 14:52
@m-iwanicki m-iwanicki self-assigned this Jul 27, 2026
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.

pre-commit-init.py creates pre-commit files that don't pass self checks

1 participant