bumpversion command adds a newline in bumpversion.cfgSee original GitHub issue
end-of-file-fixer- Makes sure files end in a newline and only a newline.
This seems to be causing issues to bump2version. More specifically, bump2version seems to be adding an extra empty line at the end of
.bumpversion.cfg which make the hook to fail. As a result, the commit is being aborted.
Is that extra line necessary?
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
I used the
exclude field to get around this
- repo: https://github.com/pre-commit/pre-commit-hooks rev: v1.2.3 hooks: - id: trailing-whitespace - id: end-of-file-fixer exclude: '.bumpversion.cfg'