Skip to content

Add .gitattributes for cross-platform line ending normalization - #1369

Closed
chernojagne wants to merge 2 commits into
pytest-dev:masterfrom
autar-pr:add-gitattributes-67d98fba
Closed

Add .gitattributes for cross-platform line ending normalization#1369
chernojagne wants to merge 2 commits into
pytest-dev:masterfrom
autar-pr:add-gitattributes-67d98fba

Conversation

@chernojagne

Copy link
Copy Markdown

Add a .gitattributes file to ensure consistent line ending normalization across platforms. This is important for the existing cross-platform CI matrix (ubuntu-latest + windows-latest).

What this adds:

  • * text=auto for automatic line ending normalization
  • Binary markers for images, fonts, archives, compiled objects, executables, audio, video
  • Python-specific markers: lockfiles (uv.lock, Pipfile.lock, poetry.lock), bytecode (.pyc, .pyo, .pyd), wheels
  • .patch/.diff files excluded from normalization to preserve byte sequences

  • Make sure to include reasonable tests for your change if necessary

    No tests needed — this is a repository metadata file with no code impact.

  • Changelog entry: will be added as <PR_NUMBER>.trivial.rst once this PR is created.


This change was generated by Autar and reviewed by a human before submission.

@RonnyPfannschmidt

Copy link
Copy Markdown
Member

low quality ai drive by,- account owner is running a denial of maintainer time attack

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