Skip to content

Add end of file pre-commit hook#9045

Merged
jsignell merged 2 commits intodask:mainfrom
jrbourbeau:trailing-newline
May 6, 2022
Merged

Add end of file pre-commit hook#9045
jsignell merged 2 commits intodask:mainfrom
jrbourbeau:trailing-newline

Conversation

@jrbourbeau
Copy link
Copy Markdown
Member

For context, see the discussion starting here #9040 (comment). I personally don't have a strong opinion on if we should have files end in a newline, but if other folks want this then I do think we should automatically check and fix in a pre-commit hook

cc @jcrist @bryanwweber @jsignell

@github-actions github-actions bot added the documentation Improve or add to documentation label May 6, 2022
@bryanwweber
Copy link
Copy Markdown
Contributor

Copying the link that @jcrist posted in that comment for more information: https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline

@jsignell jsignell merged commit eeb876a into dask:main May 6, 2022
@jrbourbeau jrbourbeau deleted the trailing-newline branch May 6, 2022 20:07
erayaslan pushed a commit to erayaslan/dask that referenced this pull request May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improve or add to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants