question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.bumpversion.cfg:7: new blank line at EOF.

See original GitHub issue

I am using latest version of bumpversion. When I command bumpversion patch with a pre-defined .bumpversion.cfg it always shows me the error message below:

.bumpversion.cfg:7: new blank line at EOF.

I had strip the new blank line but bumpversion seems like adding another newline for me automatically. Any thoughts?

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
miki725commented, Jun 8, 2018

adding another blank line fails precommit scripts too https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/end_of_file_fixer.py

in my case version bump is part of ci process which results in precommit failures like:

hookid: end-of-file-fixer

Files were modified by this hook. Additional output:

Fixing .bumpversion.cfg

would be nice to make this configurable. meanwhile have to skip precommit on bump file itself

2reactions
imZackcommented, Jan 15, 2015

Yep, I think it shouldn’t append another additional blank line.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bumpversion command adds a newline in bumpversion.cfg #58
I am using pre-commit and one of the hooks I use is is end-of-line-fixer: end-of-file-fixer - Makes sure files end in a newline...
Read more >
git: new blank line at EOF - Stack Overflow
So I run git diff --check before add -ing files and commit -ing them, and on two specific files I get path/filename:linenumber: new...
Read more >
bump2version to increment pre-release while removing post ...
I've tried, for example, bump2version --verbose prerelversion or alternatively with --new-version=1.0.0.a3 explicitly. Both of those attempts retain the .post0 ...
Read more >
Changelog — Airflow Documentation
The full changelog is about 3,000 lines long (already excluding everything backported to 1.10) ... Fix empty asctime field in JSON formatted logs...
Read more >
Changes - LYNX
+ add command-line option, etc., for controlling whether blank lines are trimmed ... http://translationproject.org/latest/lynx * tidy whitespace in lynx.cfg ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found