Skip to content

Conversation

@jvstme
Copy link
Collaborator

@jvstme jvstme commented Jan 27, 2025

This commit adds a pre-commit hook to ensure that all text files end with a newline. Since some editors add a newline automatically, enforcing all files have one will help avoid unnecessary edits as well as warnings in PR diffs.

Python files are already forced to have a newline by ruff, so this change only affects non-Python files (Markdown, YAML, etc).

This commit adds a pre-commit hook to ensure that
all text files end with a newline. Since some
editors add a newline automatically, enforcing all
files have one will help avoid unnecessary edits
as well as warnings in PR diffs.

Python files are already forced to have a newline
by ruff, so this change only affects non-Python
files (Markdown, YAML, etc).
@jvstme jvstme requested a review from un-def January 27, 2025 09:47
@jvstme jvstme merged commit 5b2b22e into master Jan 27, 2025
24 checks passed
@jvstme jvstme deleted the end_of_file_fixer branch January 27, 2025 14:06
pranitnaik43 pushed a commit to bahaal-tech/dstack that referenced this pull request Feb 9, 2025
This commit adds a pre-commit hook to ensure that
all text files end with a newline. Since some
editors add a newline automatically, enforcing all
files have one will help avoid unnecessary edits
as well as warnings in PR diffs.

Python files are already forced to have a newline
by ruff, so this change only affects non-Python
files (Markdown, YAML, etc).
pranitnaik43 pushed a commit to bahaal-tech/dstack that referenced this pull request Mar 4, 2025
This commit adds a pre-commit hook to ensure that
all text files end with a newline. Since some
editors add a newline automatically, enforcing all
files have one will help avoid unnecessary edits
as well as warnings in PR diffs.

Python files are already forced to have a newline
by ruff, so this change only affects non-Python
files (Markdown, YAML, etc).
pranitnaik43 pushed a commit to bahaal-tech/dstack that referenced this pull request Mar 5, 2025
This commit adds a pre-commit hook to ensure that
all text files end with a newline. Since some
editors add a newline automatically, enforcing all
files have one will help avoid unnecessary edits
as well as warnings in PR diffs.

Python files are already forced to have a newline
by ruff, so this change only affects non-Python
files (Markdown, YAML, etc).
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.

3 participants