Skip to content

[Chore] Add .gitattributes file and normalize line endings to LF#177

Open
Alex-Preciado wants to merge 3 commits into
masterfrom
chore/normalize-line-endings
Open

[Chore] Add .gitattributes file and normalize line endings to LF#177
Alex-Preciado wants to merge 3 commits into
masterfrom
chore/normalize-line-endings

Conversation

@Alex-Preciado
Copy link
Copy Markdown
Contributor

@Alex-Preciado Alex-Preciado commented Apr 25, 2026

Context:
While modernizing CI workflows, I noticed inconsistent line endings (CRLF vs LF) in the repository

Description:
This PR normalizes line endings across the repository to Unix-style (LF) and adds a .gitattributes file to ensure consistency across different operating systems (Windows/Linux/macOS). This new .gitattributes file:

  • Enforces eol=lf which automatically converts text files to LF on check-in and ensures they stay LF on a user's machine, regardless of their global git settings.
  • Explicitly protects binary files from corruption (.png, .ico, plus other common categories to future proof the repo)
  • Adds linguistic overrides for tests/ and doc/ to keep GitHub language stats accurate for this project.

To prepare this PR I have ran git add --renormalize . to apply these rules to all existing files, effectively resolving all the ^M character issues found in this repository.

@Alex-Preciado Alex-Preciado changed the title [Chore] Add .gitattributes files and normalize line endings to LF [Chore] Add .gitattributes file and normalize line endings to LF Apr 25, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 25, 2026

Codecov Report

❌ Patch coverage is 99.68553% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 98.69%. Comparing base (e84a88c) to head (3615675).

Files with missing lines Patch % Lines
pennylane_ionq/device.py 99.68% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #177   +/-   ##
=======================================
  Coverage   98.69%   98.69%           
=======================================
  Files           6        6           
  Lines         537      537           
=======================================
  Hits          530      530           
  Misses          7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread .gitattributes
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
Copy link
Copy Markdown
Contributor

@JerryChen97 JerryChen97 Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
*.gif binary
*.gif binary
*.svg binary

maybe also svg?

Copy link
Copy Markdown
Contributor

@JerryChen97 JerryChen97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for fixing this!!! Very helpful ❤️ ❤️ ❤️

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.

2 participants