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

(Housekeeping, refactor) Normalize whitespace for all *.py files #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aubsartre
Copy link

This PR is for normalizing the whitespace in .py files for Coalition. It:
1) changes leading tabs to spaces (4)
2) removes line trailing whitespace
3) removes tabs and spaces from lines that have no printable characters
4) adds a trailing newline to the end of the file for those without
5) removes extra trailing newlines from files that have them

as a quality-of-life improvement for coding.

This is a whitespace refactor; any side effects, or changes to code meaning, are a bug.

To get an accurate blame, use:
git blame -w

which ignores trivial whitespace changes.

This commit:
    1) changes leading tabs to spaces (4)
    2) removes line trailing whitespace
    3) removes tabs and spaces from lines that have no printable characters
    4) adds a trailing newline to the end of the file for those without
    5) removes extra trailing newlines from files that have them

as a quality-of-life improvement for coding.

This is a whitespace refactor; any side effects, or changes to code meaning, are a bug.

To get an accurate blame, use:
    git blame -w

which ignores trivial whitespace changes.
@aubsartre
Copy link
Author

aubsartre commented Dec 7, 2021

To verify that the changes are only to whitespace:
git diff --ignore-space-change --ignore-blank-lines master 2918b54

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.

1 participant