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

Enable end-of-line normalization with Git attributes #164

Merged
merged 2 commits into from
Apr 22, 2020
Merged

Conversation

cjolowicz
Copy link
Owner

This setting converts line endings to UNIX-style (LF), whenever text files are checked into and out of the repository.

Without this setting, the pre-commit hook for Prettier fails on the Windows runner. GitHub Actions configures git with core.autocrlf = true, because this is the default setting in Git for Windows.

https://prettier.io/docs/en/options.html#end-of-line
actions/checkout#135

cjolowicz and others added 2 commits April 22, 2020 09:04
cjolowicz/cookiecutter-hypermodern-python-instance#120

This setting converts line endings to UNIX-style (`LF`), whenever text files are checked into and out of the repository.
@cjolowicz cjolowicz added the style Changes that do not affect the meaning of the code (white-space, formatting, etc) label Apr 22, 2020
@cjolowicz cjolowicz merged commit 3086228 into master Apr 22, 2020
@cjolowicz cjolowicz deleted the gitattributes branch April 22, 2020 13:43
@cjolowicz cjolowicz added this to the 2020.5.15 milestone Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style Changes that do not affect the meaning of the code (white-space, formatting, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant