Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not remove last empty line (conflict with end-of-file-fixer!) #8

Closed
randolf-scholz opened this issue Aug 18, 2023 · 0 comments · Fixed by #10
Closed

Do not remove last empty line (conflict with end-of-file-fixer!) #8

randolf-scholz opened this issue Aug 18, 2023 · 0 comments · Fixed by #10

Comments

@randolf-scholz
Copy link
Contributor

There is a conflict with the end-of-file-fixer pre-commit hook (https://pre-commit.com/hooks.html), which

ensures that a file is either empty, or ends with one newline.

But nbstripout-fast keeps removing the last empty line. (nbstripout doesn't)

randolf-scholz added a commit to randolf-scholz/nbstripout-fast that referenced this issue Aug 23, 2023
randolf-scholz added a commit to randolf-scholz/nbstripout-fast that referenced this issue Aug 23, 2023
randolf-scholz added a commit to randolf-scholz/nbstripout-fast that referenced this issue Aug 23, 2023
mlucool added a commit that referenced this issue Sep 18, 2023
Added .pre-commit-hooks.yaml, fixes #8 and #9
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 a pull request may close this issue.

1 participant